Not sure if this is the right stack exchange to post this. If there is a better place please redirect me - thanks.
I enabled these lines in httpd.conf:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Then I added these lines:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /goo http://google.ca
ProxyPassReverse /goo http://google.ca
If I open up my browser and go to this URL:
http://localhost/goo
I get redirected to:
http://www.google.ca
I expected that mod_proxy would act like a proxy and not just redirect to google. I would expect that my browser should NOT know that google.ca exists and should only know about the existance of the proxy server.
- What is going on here?
- Is this not what mod_proxy was designed for?
- Is there something else that I should be using instead?