I have the following virtual host on my personal web server which runs on my NAS.I have dynDNS setup to redirect both mydomain.com and *.mydomain.com to my NAS.
<VirtualHost *:80> ServerName redir.example.com ProxyPass /pbay/ http://www.anothersite.example.com/ ProxyPassReverse /pbay/ http://www.anothersite.example.com/ </VirtualHost>
when I try to visit
redir.example.com/pbay/,it is redirecting to
www.anothersite.example.com/ and the address bar still shows
redir.example.com/pbay/ as intended. But when I do anything on the site which results in another request to the server, the address bar is changing to real (anothersite.example.com) address. I want to always show only
I thought that is what ProxyPassReverse is for. How can I achieve this?