Iis – How to have IIS and apache share the same url

apache-2.2iis

I have 2 web servers: one linux server running apache and one windows server running IIS. Is it possible for me to make both servers share the same url and subdomain. For example, can I make http:// www.mysite.com/iis/ run off of IIS and have http:// www.mysite.com/apache/ run off of apache? I don't want to use subdomains to make this work.

Best Answer

You can use mod_proxy in Apache to forward requests to http://www.mysite.com/iis/ on to the IIS service, if Apache is the main webserver of the two (i.e. it responds directly to port 80 on the address www.mysite.com points to).

The other option is to have neither Apache or IIS as the primary service on the standard port(s), having a dedicated reverse proxy instead that is configured to forward requests to IIS and Apache as appropriate.

Related Topic