Rewrite Headers Question

Jun 16, 2009 at 9:46 PM

Hi All,

I have the following scenario. I have an apache server running on and I have IIS hosting a site on port 80 at I would like to have it so that if you request the "" subdomain it hosts out the apache site on

Right now the apache server is not exposed to the rest of the world and if possible I'd like to keep it that way but it is doable to expose it out on port 8080. Is this possible to do this with this Rewrite filter? If I change the header to port 8080 because this is an ISAPI filter and  IIS is already handling the request will changing the header resubmit the request to the server?


Jun 25, 2009 at 6:02 PM

What you want is called an HTTP PROXY.  The Apache HTTP Server has an extension to do what you describe, it is called mod_proxy.  But IIRF is not a proxy, and won't satisfy. 

You *could* reverse the roles, and use Apache as the public-facing server, and allow it to proxy requests to IIS listening on port 8080.   Or you could get a proxy server for IIS.



Jun 25, 2009 at 6:11 PM

If you have IIS7, you may be able to take advantage of this: