troubles with reverse proxy
I am setting up reverse proxy for my servers. One server is running Apache 2.0 and others are running lighttpd, php-fastcgi and mysql instances. The users I have are using CMS systems.This far the commands I have been trying in Apache conf are like these:
<Location /user1/>
ProxyPass onelocalhostip/
ProxyPassReverse /
ProxyPassReverseCookieDomain onelocalhostipwithhypertexttransferprotocol heresmyhost
ProxyPassReverseCookiePath / /user1/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /user1/
ProxyHTMLURLMap /user1/ /user1/
RequestHeader unset Accept-Encoding
</Location>
<Location /user2/>
ProxyPass anotherlocalhostipwithhypertexttransferprotocol/
ProxyPassReverse /
ProxyPassReverseCookieDomain anotherlocalhostip heresmyhost
ProxyPassReverseCookiePath / /user2/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /user2/
ProxyHTMLURLMap /user2/ /user2/
RequestHeader unset Accept-Encoding
</Location>
Now the problem with Apache 2.053 (with proxy cookie patch) - for user1 everything seems OK, but when user2 tries to log in to his CMS from front page (heresmyhost/user2/), he is taken to user1's front page (heresmyhost/user1/). How could I fix this?