Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Apache - Tomcat forwarding does not work with a scout application
Apache - Tomcat forwarding does not work with a scout application [message #1773150] Fri, 22 September 2017 09:54 Go to next message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

Hello everybody,

I have a problem with the Apache setting for a scout application.

* I have an application installed on the Tomcat and is now under [<IP address> /org.eclipse.scout.ui.html/].
* Now I want a redirect from [app.myAdresse.eu] to [<IP address> /org.eclipse.scout.ui.html/].


I set this with a new Virtualhost on Apache:
<Virtualhost *:80>
    JkMount /* ajp13_worker
    
    ServerName app.myAdresse.eu
    
    #DocumentRoot /opt/tomcat/webapps
    DocumentRoot /opt/tomcat/webapps
    
    ErrorLog /opt/tomcat/logs/error.log
    
    CustomLog /opt/tomcat/logs/access.log common
    
      <Directory /opt/tomcat/webapps>
        Options -Indexes
    </Directory>
	
	RewriteEngine On
  RewriteRule ^/(.*) /org.eclipse.scout.ui.html/$1 [PT]  

</Virtualhost>


When I restart the Apache and Tomcat, I come to the login mask of the Scout framework. But the registration itself does not work!

However, logging in via the IP address [<IP address> /org.eclipse.scout.ui.html/] works without problems.


Is this on the Apache, the Tomcat or do I have something in the Scout application set?

Unfortunately I have no more idea.



Re: Apache - Tomcat forwarding does not work with a scout application [message #1773226 is a reply to message #1773150] Mon, 25 September 2017 05:07 Go to previous messageGo to next message
Paolo Bazzi is currently offline Paolo BazziFriend
Messages: 17
Registered: January 2017
Junior Member
Hi

Source Deposit wrote on Fri, 22 September 2017 09:54

When I restart the Apache and Tomcat, I come to the login mask of the Scout framework. But the registration itself does not work!


What do you mean by 'does not work'? Do you have any error or warnings in the UI- or backend server log?

Cheers,
Paolo
Re: Apache - Tomcat forwarding does not work with a scout application [message #1773887 is a reply to message #1773226] Fri, 06 October 2017 06:29 Go to previous messageGo to next message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

Hy Paolo,

If I want to start the application via the "Virtualhost", the registration mask comes, but you can not log on. There is also no error message. No entries are made in the error logs. Nothing!

If I try to log on with deliberately wrong data, a proper error message comes.

I believe it is due to the proxy-foo (JkMount /* ajp13_worker or RewriteRule).



Thanks for help
Re: Apache - Tomcat forwarding does not work with a scout application [message #1773994 is a reply to message #1773887] Sun, 08 October 2017 18:24 Go to previous messageGo to next message
Thomas Schweigler is currently offline Thomas SchweiglerFriend
Messages: 1
Registered: October 2017
Junior Member
Hi,

scout uses a cookie to identify your session after the authentication.
If you are using another path ("/" instead of "org.eclipse.scout.ui.html") for your application, the browser can not handle the cookie properly.

Option 1)
Tell your Tomcat the right path in the context.xml
<Context sessionCookiePath="/">


Option 2)
Correct the cookie-path in your apache virtualhost configuration with mod_headers

hope this helps
Re: Apache - Tomcat forwarding does not work with a scout application [message #1774107 is a reply to message #1773994] Tue, 10 October 2017 16:12 Go to previous message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

Hy Thomas,


yeah !!!

Insert in the file "context.xml" in the tag "Context"
sessionCookiePath="/"
.... and all is fine ...

Thank you ...
Previous Topic:[Javascript] Set custom parent of element created with scout.create()?
Next Topic:Eclipse Scout disable login?
Goto Forum:
  


Current Time: Sun Nov 18 20:17:00 GMT 2018

Powered by FUDForum. Page generated in 0.02459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top