Apache Proxy Example

Apache proxy example for web app running on myapp.website.com on port 7990.

<VirtualHost *:80>  
        ServerName myapp.website.com
        ProxyRequests Off

        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>

                # Logging
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
        CustomLog logs/access_log common


        ProxyTimeout    7200
        ProxyPreserveHost On
        ProxyPass           /       http://localhost:7990/
        ProxyPassReverse    /       http://localhost:7990/
        ProxyTimeout     86400

</VirtualHost>

Tagged under: apache, httpd, proxy