]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - config/httpd/httpd.conf
GeƤndert:
[people/pmueller/ipfire-2.x.git] / config / httpd / httpd.conf
CommitLineData
3ea75603
MT
1##
2## httpd.conf -- Apache HTTP server configuration file
3##
4## $Id: httpd.conf,v 1.15.2.7 2005/04/16 11:40:15 rkerr Exp $
5##
6ServerType standalone
7ServerRoot /etc/httpd
8
9LockFile /var/lock/httpd.lock
10PidFile /var/run/httpd.pid
11ScoreBoardFile /var/run/httpd.scoreboard
12Timeout 900
13KeepAlive On
14MaxKeepAliveRequests 100
15KeepAliveTimeout 15
16MinSpareServers 1
17MaxSpareServers 2
18StartServers 2
19MaxClients 10
20MaxRequestsPerChild 100
894c6feb 21Port 444
3ea75603
MT
22Listen 444
23User nobody
24Group nobody
25ServerAdmin root@localhost
26ServerTokens Prod
27DocumentRoot /home/httpd/html
28# Limit track/trace requests
29RewriteEngine on
30RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS)
31RewriteRule .* - [F]
32
33<Directory />
34 Options None
35 AllowOverride None
36</Directory>
37<Directory /home/httpd/html>
38 Options ExecCGI
39 AllowOverride None
40 Order allow,deny
41 Allow from all
42</Directory>
43<DirectoryMatch "/home/httpd/html/(graphs|sgraph)">
44 AuthName "Restricted"
45 AuthType Basic
894c6feb 46 AuthUserFile /var/ipfire/auth/users
3ea75603
MT
47 require user admin
48</DirectoryMatch>
49ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
50<Directory /home/httpd/cgi-bin>
51 AllowOverride None
52 Options None
894c6feb 53 AuthName "IPFire - Restricted"
3ea75603
MT
54 AuthType Basic
55 AuthUserFile /var/ipfire/auth/users
56 Require user admin
ed38f89d
MT
57 <Files chpasswd.cgi>
58 Satisfy Any
59 Allow from All
60 </Files>
61 <Files webaccess.cgi>
62 Satisfy Any
63 Allow from All
64 </Files>
3ea75603
MT
65 <Files credits.cgi>
66 Satisfy Any
67 Allow from All
68 </Files>
69 <Files dial.cgi>
70 Require user admin dial
71 </Files>
72</Directory>
73<IfModule mod_dir.c>
74 DirectoryIndex index.html index.htm index.shtml index.cgi
75</IfModule>
76AccessFileName .htaccess
77<Files ~ "^\.ht">
78 Order allow,deny
79 Deny from all
80</Files>
81<IfModule mod_mime.c>
82 TypesConfig /etc/mime.types
83</IfModule>
84DefaultType text/plain
85
86HostnameLookups Off
87ErrorLog /var/log/httpd/error_log
88LogLevel warn
89LogFormat "%h %l %u %t \"%r\" %>s %b" common
90CustomLog /var/log/httpd/access_log common
91ServerSignature Off
92AddHandler cgi-script .cgi
93<IfModule mod_setenvif.c>
94 BrowserMatch "Mozilla/2" nokeepalive
95 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
96 BrowserMatch "RealPlayer 4\.0" force-response-1.0
97 BrowserMatch "Java/1\.0" force-response-1.0
98 BrowserMatch "JDK/1\.0" force-response-1.0
99</IfModule>
100
101###
102### SSL Configuration
103###
104AddType application/x-x509-ca-cert .crt
105AddType application/x-pkcs7-crl .crl
106
107SSLPassPhraseDialog builtin
108SSLSessionCache dbm:/var/log/httpd/ssl_scache
109SSLSessionCacheTimeout 900
110SSLMutex file:/var/log/httpd/ssl_mutex
111SSLRandomSeed startup builtin
112SSLRandomSeed connect builtin
113SSLLog /var/log/httpd/ssl_engine_log
114SSLLogLevel info
115
116<VirtualHost _default_:444>
117 RewriteEngine on
118 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS)
119 RewriteRule .* - [F]
120 DocumentRoot /home/httpd/html
121 ServerAdmin root@localhost
122 ErrorLog /var/log/httpd/error_log
123 TransferLog /var/log/httpd/access_log
124 SSLEngine on
125 SSLProtocol all -SSLv2
126 SSLCipherSuite ALL:!ADH:!EXPORT56:!eNULL:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW:+EXP
127 SSLCertificateFile /etc/httpd/server.crt
128 SSLCertificateKeyFile /etc/httpd/server.key
129 <Files ~ "\.(cgi|shtml?)$">
130 SSLOptions +StdEnvVars
131 </Files>
132 <Directory /home/httpd/cgi-bin>
133 SSLOptions +StdEnvVars
134 </Directory>
135 SetEnv HOME /home/nobody
136 SetEnvIf User-Agent ".*MSIE.*" \
137 nokeepalive ssl-unclean-shutdown \
138 downgrade-1.0 force-response-1.0
139 CustomLog /var/log/httpd/ssl_request_log \
140 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
141</VirtualHost>
142
143<Directory /home/httpd/html/backup>
144 Options None
145 AllowOverride None
146 AuthName "Restricted"
147 AuthType Basic
148 AuthUserFile /var/ipfire/auth/users
149 require user admin
150</Directory>
151
152include /etc/httpd/conf/hostname.conf