2011年4月14日 星期四

[Apache] mod_proxy Settings

# Reverse Proxy
ProxyRequests Off

<Proxy *>
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
        Allow from 1.2.3.0/23
</Proxy>

ProxyPass /chat/ http://mydomain.com:1234/
ProxyHTMLURLMap http://mydomain.com:1234 /chat/
<Location /msg/>
        ProxyPassReverse /
        # ProxyHTMLEnable if mod_proxy_html version >= 3.1 else SetOutputFilter
        # ProxyHTMLEnable On
        SetOutputFilter proxy-html
        ProxyHTMLURLMap / /chat/
        # RequestHeader unset  Accept-Encoding
</Location>

See Also

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
Related Posts Plugin for WordPress, Blogger...