All pastes #827585 Raw Edit

Mine

public text v1 · immutable
#827585 ·published 2007-12-21 21:31 UTC
rendered paste body
# How do I make Apache proxy these requests? I have an app server running on port 8080
# with below, I always get 403 forbidden
<IfModule mod_proxy.c>
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.

        ProxyPass /apps http://127.0.0.1:8080/apps
        ProxyPassReverse /apps http://127.0.0.1:8080/apps

        ProxyRequests On

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
        </Proxy>

        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block

        ProxyVia On
</IfModule>