]> git.pld-linux.org Git - packages/apache.git/blob - apache-mod_proxy.conf
- added anti-relay defaults
[packages/apache.git] / apache-mod_proxy.conf
1 LoadModule proxy_module         lib/apache/mod_proxy.so
2 LoadModule proxy_connect_module lib/apache/mod_proxy_connect.so
3 LoadModule proxy_ftp_module     lib/apache/mod_proxy_ftp.so
4 LoadModule proxy_http_module    lib/apache/mod_proxy_http.so
5
6 #
7 # Proxy Server directives. Uncomment the following lines to
8 # enable the proxy server:
9 #
10 <IfModule mod_proxy.c>
11 ProxyRequests On
12 #
13 #
14 # This prevents spammers from using apache as a relay by posting to 
15 # http://victim:25/ and sending raw data.
16 #
17 <Proxy *>
18     Order deny,allow
19     Deny from all
20 #    Allow from .your-domain.com
21 </Proxy>
22
23 #
24 # Enable/disable the handling of HTTP/1.1 "Via:" headers.
25 # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
26 # Set to one of: Off | On | Full | Block
27 #
28 ProxyVia On
29
30 #
31 # To enable the cache as well, edit and uncomment the following lines:
32 # (no cacheing without CacheRoot)
33 #
34 <IfModule mod_cache.c>
35 CacheRoot "/var/cache/apache"
36 CacheSize 5
37 CacheGcInterval 4
38 CacheMaxExpire 24
39 CacheLastModifiedFactor 0.1
40 CacheDefaultExpire 1
41 #NoCache a-domain.com another-domain.edu joes.garage-sale.com
42 </IfModule>
43
44 </IfModule>
45 # End of proxy directives.
46
This page took 0.02965 seconds and 4 git commands to generate.