Showing posts with label Apache ProxyPass IIS Wildcard. Show all posts
Showing posts with label Apache ProxyPass IIS Wildcard. Show all posts

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.