Forum Moderators: phranque

Message Too Old, No Replies

mod proxy setup redirecting

         

StaticPhilly

9:33 pm on Feb 25, 2010 (gmt 0)

10+ Year Member



hello chaps,

ok i have a question,

Im setting up apache as a forwarding proxy using mod_proxy but want to setup redirecting when the user dose the follow:

lets say the user requests the domain bbc.co.uk how can i redirect them to itv.com?

also lets say the user gos to example.com/hello how can i redirect them to example.com/bye?

below is my proxy part of httpd.conf, im also using windows :)

cheers,
Phil

NameVirtualHost 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
ServerAdmin Phil
ProxyRequests On
ProxyVia On
ErrorLog logs\proxy-error.log
CustomLog logs\proxy-access.log common

<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>

jdMorgan

4:30 pm on Feb 26, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You'll need to get more specific with the "Proxy" directive's pattern, or define additional VirtualHosts to exclude the domain-requests-to-be-redirected from the proxy through-put.

Jim