freezes when configuring apache as a proxy for applications running on tomcat on different computers. Everything seems to be working on the first application - WebApp1. But in the left pane, ProxyPassReverseCookiePath does not work. ProxyPassReverseCookiePath only works with the first application. When other applications connect to the url, jsessionid is added. What did I miss and how to fix it on WebApp2 and WebApp3? Thanks
HTTPD-vhosts.con:
NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@localhost ProxyRequests off ProxyPreserveHost on <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /WebApp1/ ajp://192.168.1.98:8009/WebApp1/ ProxyPassReverse /WebApp1/ ajp://192.168.1.98:8009/WebApp1/ ProxyPassReverse /WebApp1/ http://192.168.1.98:8080/WebApp1/ ProxyPassReverseCookiePath /WebApp1 /WebApp1/ ProxyPass /WebApp2/ ajp://192.168.1.98:8009/WebApp2/ ProxyPassReverse /WebApp2/ ajp://192.168.1.98:8009/WebApp2/ ProxyPassReverse /WebApp2/ http://192.168.1.98:8080/WebApp2/ ProxyPassReverseCookiePath /WebApp2 /WebApp2/ ProxyPass /WebApp3/ ajp://192.168.1.98:8009/WebApp3/ ProxyPassReverse /WebApp3/ ajp://192.168.1.98:8009/WebApp3/ ProxyPassReverse /WebApp3/ http://192.168.1.98:8080/WebApp3/ ProxyPassReverseCookiePath /WebApp3 /WebApp3/ </VirtualHost>
Solved by going to the cookie path location directory:
ProxyPassReverseCookiePath /WebApp1/ http://192.168.1.98:8080/WebApp1/
ajp , URL- -. ProxyPassReverse ProxyPassReverseCookiePath , .
ProxyPassReverse
ProxyPassReverseCookiePath
, ProxyPassReverseCookiePath path cookie, -. , , -, , , Apache, - cookie.
path
, , , , /WebApp1 /WebApp1/, cookie /WebApp1//, . ( , Apache .) , , , , Apache , . ( , Apache).
/WebApp1
/WebApp1/
/WebApp1//
Source: https://habr.com/ru/post/1525399/More articles:How can I change my login page without losing user passwords? - browserФормы Django с внешними ключами - pythonThe application icon does not update in the device settings when trying to update? - androidWordPress behind reverse proxy: Session cookies are not set in Safari & IE - safariGCMRegistrar could not be resolved - androidСоздание кнопки snapchat для Android-приложения - androidPause / Resume a simple Libgdx game for Android - androidSort pairs of numbers according to one value - Java - javaGrails - Date display based on user timezone - timezoneYammer Authentication in C # Console Application - c #All Articles