Skip to main content

Posts

Showing posts from May, 2009

Configuring Apache2 HTTPd Virtual Host to Work with Windows Server Internet Information Server (IIS) ASP.NET Hosting

Here's the tip I just discovered, compiled and tested on configuring an Apache2 virtual host to interoperate with Microsoft Internet Information Server ASP.NET hosting. My requirements and configuration are as follows: Operating System : Windows Server 2003 Primary Web server : Apache2 on TCP port 80 Web application server : Windows Server 2003 built-in Internet Information Server on TCP port 8090 The pictures below outline what need to be done. 1. Configure the virtual host name in the 'hosts' file or the DNS 2. Configure the IIS Web site to listen to TCP port 8090 3. Enable the necessary Apache2 modules in the 'httpd.conf' file: mod_rewrite, mod_proxy, and mod_proxy_http (for HTTP interoperability). 4. Configure the Apache2 virtual host settings in the 'httpd-vhosts.conf' file so that (i) name-based virtual hosting is enabled and (ii) all HTTP requests are 'proxied' to the IIS Web site on the same host (1