Apache ProxyPass/ProxyPassReverse to IIS

apache-2.2asp.netauthenticationproxypass

We have an ASP.NET web application which is mapped to a folder on an apache hosted php site using ProxyPass.ProxyPassReverse.

A couple of problems being encountered.

  1. cookies are being lost which breaks the site navigation, this can be overcome by setting the asp app as cookieless.

  2. Forms authentication is used on the ASP site, this is also broken withe the proxypass in place, suspect this is cookie related also.

ASP site works ok when run from a domain/ip address.

Use of a separate domain / sub-domain is not an option duew to client requirements.

Best Answer

It would be better if you could post your proxy configuration so that we have a precise idea of what could be going on.

I'm guessing however that if it really is a cookie problem, you could solve it by using the ProxyPassReverseCookieDomain and/or ProxyPassReverseCookiePath directives in order to rewrite the cookies properly. Refer to the documentation.