java - Session in ProxyPassReverse -


so have java dynamic web application running on tomcat7 web server used run directly eclipse till opens in browser on url :

http://localhost:8080/myproject/

now, avoid relative urls being different on live server , local machine because of directory (myproject) host, want run project on url :

http://local.myproject.com/

with of apache , proxypassreverse.

after setting local.myproject.com point 127.0.0.1 in hosts file, did following configuration in apache conf file :

<virtualhost *:80> servername local.myproject.com proxypreservehost on proxypass / http://localhost:8080/myproject/ proxypassreverse / http://localhost:8080/myproject/ proxytimeout 1200 </virtualhost> 

this allowing me open homepage of myproject on local.myproject.com. problem is, it's not maintaining session data whenever refresh page, session data lost, not able log in myproject.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -