how to config mod_proxy and mod_security error pages

Discussion in 'Apache' started by dspeer, Feb 4, 2010.

  1. #1
    Hi:

    I've spent some time figuring out how to use Apache 2.2 as a web app firewall, using Ubuntu server to a IIS backend.

    It's running, I am currently logging, not denying or blocking anything.

    I am having trouble wrapping my brain around this problem:

    www.mydomain.com on the proxy points to the front page like this:

    ProxyPass / http://192.168.33.12/

    This forwards the server root on the front to the server root on the back.

    I want Apache to display custom error pages, depending on the error thrown by the backend machine. How can I do this, when the root level and everything under it is forwarded to the backend by the line above?

    Any help appreciated.

    Dan
     
    dspeer, Feb 4, 2010 IP