The Temple of Fu

code, systems and games

Archive for the ‘Apache’ Category

Apache mod_proxy

leave a comment »

So if you want to proxy say an IIS server behind your Apache box, and hey lets be honest who wouldn’t want to, you can do it using mod_proxy and name based virtual hosting. Mod_proxy simply redirects requests for certain URLs to another web server.

Create a vhost definition.

<Virtualhost *>
  ProxyPreserveHost On
  ProxyPass /
  ProxyPassReverse /
  SetEnv force-proxy-request-1.0 1
  SetEnv proxy-nokeepalive 1

Have Apache re read it’s configuration and whammo!

Now you can have multiple flavors of web servers sitting behind a single IP! Sweet huh.



Written by lordfu

February 25, 2010 at 2:36 am

Posted in Apache, Linux, RedHats, Slackware