I'm running a webserver which behind apache reverse proxy.
everything works fine except the cookie.
This is my conf which is not work.
Code:
ServerName public.domain.com
ProxyPreserveHost Off
RewriteEngine On
RewriteOptions inherit
ProxyRequests Off
ProxyPassInterpolateEnv Off
ProxyPass / http://192.168.122.2/
ProxyPassReverse / http://192.168.122.2/
ProxyPassReverseCookieDomain 192.168.122.2 public.domain.com
# ProxyPassReverseCookiePath / /
And This configuration works, cookie appears. but I don't want /a in path. I need to direct all domain into the webserver that behind reverse proxy.
Code:
ProxyPreserveHost Off
RewriteEngine On
RewriteOptions inherit
ProxyRequests Off
ProxyPassInterpolateEnv Off
ProxyPass /a http://192.168.122.2/
ProxyPassReverse /a http://192.168.122.2/
ProxyPassReverseCookieDomain 192.168.122.2 public.domain
ProxyPassReverseCookiePath /a /
Is there anyone can help? thanks in advance!!