0

So I have an apache web server with the below rule:

    ProxyPass                       /auth       https://my-auth-server.azurewebsites.com/auth keepalive=On
    ProxyPassReverse        /auth          https://my-auth-server.azurewebsites.com/auth

So anything going to /auth is being proxied to my auth server which is an azure web app. When this web app returns a 401 error from the /auth/token path - I want my apache web server to serve a custom error page hosted on the web server - rather than the default 401 apache one I get from the the auth server.

Ideally I want to be able to do this without modifying the auth server at all. I do have a custom 401 page setup but it doesn't get directed to it from the proxypass site.

Hope this makes sense

edit:

So this works. Although it will be the same page for all 401 errors - rather than a specific error page for 401s in this instance - does anyone know how to have just a specific error for this one case?

0 Answers0