Friday 3 August 2007

Apache Proxypass and IIS

Once upon a time, in a lad far far away... Mr Fletcher had two demonstration servers on his local network, an excellent Linux box running php/apache, also running some funky wildcard DNS Shizzle and the other box running Windows 2003 & IIS.

However, he only had one IP address could only demonstrate one server at any given time, until he discovered Apache's ProxyPass with added wildcards.

Here's the apache Virtual Host;

<VirtualHost *:80>
ServerName ms.mysite.com
ProxyPreserveHost On
ProxyRequests Off
ServerAlias *.ms.mysite.com
ProxyPass / http://192.168.1.2/
ProxyPassReverse / http://192.168.1.2/
<VirtualHost *:80>

In this example, all subdomains of ms.mysite.com now forward onto the IIS server.

1 comment:

Web Design Quote said...

Hi,
Your blog is very nice.
Suffolk Web now offers a new interface to search everything in the County Catalog as well as some databases or images from one simple box.
Thanks for sharing with us.