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.mydomain.com ProxyPass /pbay/ http://www.anothersite.com/ ProxyPassReverse /pbay/ http://www.anothersite.com/ </VirtualHost>
when I try to visit "redir.mydomain.com/pbay/",it is redirecting to http://www.anothersite.com/ and the address bar still shows "redir.mydomain.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.com) address.I want to always show only "http://redir.mydomain.com/...."
I thought that is what ProxyPassReverse is for. How can I achieve this? Thanks in advance.