Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.