Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > a59d99d921b61531305538efcdff3a64 > files > 4

apache-2.2.24-1.1.mga2.src.rpm

<IfModule !mod_proxy.c>
    LoadModule proxy_module             modules/mod_proxy.so
    #LoadModule proxy_connect_module    modules/mod_proxy_connect.so
    #LoadModule proxy_ftp_module        modules/mod_proxy_ftp.so
    LoadModule proxy_http_module        modules/mod_proxy_http.so
    LoadModule proxy_balancer_module    modules/mod_proxy_balancer.so
</IfModule>

<IfModule mod_proxy.c>

    # <Proxy> - Container for directives affecting resources located in the proxied location
    <Proxy *>
        Order deny,allow
        Deny from all
    #    Allow from .your-domain.com
    </Proxy>

    # <ProxyMatch> - Container for directives affecting resources located in the proxied location, in regular expression syntax

    # ProxyRequests - on if the true proxy requests should be accepted
    ProxyRequests On

    # ProxyRemote - a scheme, partial URL or '*' and a proxy server
    #ProxyRemote * http://firewall.mycompany.com:81
    #ProxyRemote http://goodguys.com/ http://mirrorguys.com:8000
    #ProxyRemote * http://cleversite.com
    #ProxyRemote ftp http://ftpproxy.mydomain.com:8080

    # ProxyRemoteMatch - a regex pattern and a proxy server
    #ProxyRemoteMatch ...

    # ProxyPass - a virtual path and a URL
    #ProxyPass /mirror/foo/ http://backend.example.com/

    # ProxyPassReverse - a virtual path and a URL for reverse proxy behaviour
    #ProxyPassReverse /mirror/foo/ http://backend.example.com/

    # ProxyPassReverseCookiePath - Path rewrite rule for proxying cookies
    #ProxyPassReverseCookiePath / /mirror/foo/

    # ProxyPassReverseCookieDomain - Domain rewrite rule for proxying cookies
    #ProxyPassReverseCookieDomain backend.example.com public.example.com

    # ProxyBlock - A list of names, hosts or domains to which the proxy will not connect
    #ProxyBlock joes-garage.com some-host.co.uk rocky.wotsamattau.edu

    # ProxyReceiveBufferSize - Receive buffer size for outgoing HTTP and FTP connections in bytes
    ProxyReceiveBufferSize 0

    # ProxyIOBufferSize - IO buffer size for outgoing HTTP and FTP connections in bytes
    ProxyIOBufferSize 8192

    # ProxyMaxForwards - The maximum number of proxies a request may be forwarded through.
    ProxyMaxForwards 10

    # NoProxy - A list of domains, hosts, or subnets to which the proxy will connect directly
    #NoProxy .mycompany.com 192.168.112.0/21

    # ProxyDomain - The default intranet domain name (in absence of a domain in the URL)
    #ProxyDomain .mycompany.com
 
    # AllowCONNECT - A list of ports which CONNECT may connect to
    #AllowCONNECT 443 563

    # ProxyVia - Configure Via: proxy header header to one of: on | off | block | full
    ProxyVia On

    # ProxyErrorOverride - use our error handling pages instead of the servers' we are proxying
    ProxyErrorOverride Off

    # ProxyPreserveHost - on if we should preserve host header while proxying
    ProxyPreserveHost Off

    # ProxyTimeout - Set the timeout (in seconds) for a proxied connection. This overrides the server timeout
    ProxyTimeout 300

    # ProxyBadHeader - How to handle bad header line in response: IsError | Ignore | StartBody
    ProxyBadHeader IsError

    # BalancerMember - A balancer name and scheme with list of params
    #ProxyPass /special-area http://special.example.com/ smax=5 max=10
    #ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On
    #<Proxy balancer://mycluster>
    #BalancerMember http://1.2.3.4:8009
    #BalancerMember http://1.2.3.5:8009 smax=10
    # Less powerful server, don't send as many requests there
    #BalancerMember http://1.2.3.6:8009 smax=1 loadfactor=20
    #</Proxy>

    # ProxyStatus - Configure Status: proxy status to one of: on | off | full
    #ProxyStatus full

    # ProxySet - A balancer or worker name with list of params
    #ProxySet ?

</IfModule>

<IfModule mod_proxy_balancer.c>

    <Location /balancer-manager>
        SetHandler balancer-manager
        Order Deny,Allow
        Deny from all
        #Allow from .foo.com
    </Location>

</IfModule>