2 ## httpd.conf -- Apache HTTP server configuration file
7 LockFile /var/lock/httpd.lock
8 PidFile /var/run/httpd.pid
9 ScoreBoardFile /var/run/httpd.scoreboard
12 MaxKeepAliveRequests 100
18 MaxRequestsPerChild 100
24 ServerAdmin root@localhost
26 DocumentRoot /home/httpd/html
27 # Limit track/trace requests
29 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS)
36 <Directory /home/httpd/html>
42 <DirectoryMatch "/home/httpd/html/(graphs|sgraph)">
43 AuthName "IPFire - Restricted"
45 AuthUserFile /var/ipfire/auth/users
48 ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
49 <Directory /home/httpd/cgi-bin>
52 AuthName "IPFire - Restricted"
54 AuthUserFile /var/ipfire/auth/users
72 <Directory /home/httpd/cgi-bin/dial>
75 AuthName "IPFire - Restricted"
77 AuthUserFile /var/ipfire/auth/users
78 Require user dial admin
81 DirectoryIndex index.html index.htm index.shtml index.cgi
83 AccessFileName .htaccess
89 TypesConfig /etc/mime.types
91 DefaultType text/plain
94 ErrorLog /var/log/httpd/error_log
96 LogFormat "%h %l %u %t \"%r\" %>s %b" common
97 CustomLog /var/log/httpd/access_log common
99 AddHandler cgi-script .cgi
100 <IfModule mod_setenvif.c>
101 BrowserMatch "Mozilla/2" nokeepalive
102 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
103 BrowserMatch "RealPlayer 4\.0" force-response-1.0
104 BrowserMatch "Java/1\.0" force-response-1.0
105 BrowserMatch "JDK/1\.0" force-response-1.0
109 ### SSL Configuration
111 AddType application/x-x509-ca-cert .crt
112 AddType application/x-pkcs7-crl .crl
114 SSLPassPhraseDialog builtin
115 SSLSessionCache dbm:/var/log/httpd/ssl_scache
116 SSLSessionCacheTimeout 900
117 SSLMutex file:/var/log/httpd/ssl_mutex
118 SSLRandomSeed startup builtin
119 SSLRandomSeed connect builtin
120 SSLLog /var/log/httpd/ssl_engine_log
123 <VirtualHost _default_:444>
125 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS)
127 DocumentRoot /home/httpd/html
128 ServerAdmin root@localhost
129 ErrorLog /var/log/httpd/error_log
130 TransferLog /var/log/httpd/access_log
132 SSLProtocol all -SSLv2
133 SSLCipherSuite ALL:!ADH:!EXPORT56:!eNULL:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW:+EXP
134 SSLCertificateFile /etc/httpd/server.crt
135 SSLCertificateKeyFile /etc/httpd/server.key
136 <Files ~ "\.(cgi|shtml?)$">
137 SSLOptions +StdEnvVars
139 <Directory /home/httpd/cgi-bin>
140 SSLOptions +StdEnvVars
142 SetEnv HOME /home/nobody
143 SetEnvIf User-Agent ".*MSIE.*" \
144 nokeepalive ssl-unclean-shutdown \
145 downgrade-1.0 force-response-1.0
146 CustomLog /var/log/httpd/ssl_request_log \
147 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
150 <Directory /home/httpd/html/backup>
153 AuthName "IPFire - Restricted"
155 AuthUserFile /var/ipfire/auth/users
159 include /etc/httpd/conf/hostname.conf