tomcat - session attributes no longer working when going through mod_proxy -


i have tomcat app running on "http://localhost:8080/appexploded/login.jsp" (tomcat). have installed apache , running mod_proxy request on port 80 can proxied 8080. in httpd.conf file, here have:

loadmodule proxy_module  /usr/lib/apache2/modules/mod_proxy.so  proxypass         /ordergeek  http://localhost:8080/appexploded proxypassreverse  /ordergeek  http://localhost:8080/appexploded  

so when make request :8080 directly, request.getsession().getattribute("blah") works 1 page another. however, when go "http://localhost/ordergeek/login.jsp", page sets session attribute, , redirects page. however, next page tries read request.getsession().getattribute("blah"), , doesn't find it.

when don't go through proxy... session attributes work. when go through proxy, don't. missing?

i added following server.xml:

<connector port="8080"            proxyname="www.myappurl.com"           proxyport="80"/> 

it old 1 thread comes in first google search results , hardly found answer elsewhere, might :

you have add proxypassreversecookiepath directive in order path corrected in cookies:

proxypassreversecookiepath /appexploded /ordergeek   

once set, should session attributes usual.

notice must use apache 2.2 or later.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -