Home About Feedback Advertise The Lab Sitemap

Your Ad Here
Google Adsense Pepperjam Network Adbrite Text Link Ads Bidvertiser Kontera
More...


Reverse Proxy Apache ==> IIS, need custom error pages triggered on IIS side


Your Ad Here
I’m not sure if this is the right forum, or if anyone can suggest a message board where I might get support on this.

This is what I have. I have Apache and IIS both running on Windows 2k3.

Apache is running in reverse Proxy mode sending multiple domains/virtual hosts to IIS.

Code:



ProxyRequests Off
<VirtualHost *:80>
        ProxyPreserveHost On
        ProxyPass / http://localhost:8080
        ProxyPassReverse / http://localhost:8080
        ServerName mydomain.com

</VirtualHost>


Now, if I type in http://mydomain.com everything works great and IIS (listening on 127.0.0.1:8080) serves the page. However, I am doing custom error trapping, so when I type in http://mydomainmain.com/mydirectory (and /mydirectory doesn’t exist on IIS) I need to fire ASP code (via custom error messages/handling) on the IIS server and then present a data driven page.

However, Apache is returning A 502 error:

Code:


Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /mydirectory.

Reason: DNS lookup failure for: localhost:8080mydirectory


Is there a way for me to setup Apache to pass all error checking to IIS while using it as a reverse proxy?

Thanks


Related Entries:
Can’t get SSL to work on my localhost
Different IP address for ‘localhost’ and MySQL
Trying to host 2 domains on same apache using Virtual Hosts
SEO Chat Forums - Custom 404 Error Page
Looking for US hosting with reverse proxy
Hosts file problem

Leave a Reply