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