source: server/fedora/config/etc/httpd/conf/httpd.conf @ 779

Last change on this file since 779 was 779, checked in by geofft, 14 years ago
mod_status is a serious privacy violation.
File size: 11.7 KB
Line 
1ServerRoot /etc/httpd
2PidFile run/httpd.pid
3Timeout 300
4KeepAlive On
5MaxKeepAliveRequests 1000
6KeepAliveTimeout 15
7
8<IfModule mpm_prefork_module>
9    MinSpareServers 5
10    MaxSpareServers 50
11    StartServers 8
12    ServerLimit 512
13    MaxClients 512
14    MaxRequestsPerChild 100000
15</IfModule>
16
17<IfModule mpm_worker_module>
18    StartServers 3
19    MinSpareThreads 75
20    MaxSpareThreads 250
21    ServerLimit 32
22    ThreadsPerChild 32
23    MaxClients 1024
24    MaxRequestsPerChild 1000000
25</IfModule>
26
27LoadModule auth_basic_module modules/mod_auth_basic.so
28LoadModule auth_digest_module modules/mod_auth_digest.so
29LoadModule authn_file_module modules/mod_authn_file.so
30LoadModule authn_alias_module modules/mod_authn_alias.so
31LoadModule authn_anon_module modules/mod_authn_anon.so
32#LoadModule authn_dbm_module modules/mod_authn_dbm.so
33LoadModule authn_default_module modules/mod_authn_default.so
34LoadModule authz_host_module modules/mod_authz_host.so
35LoadModule authz_user_module modules/mod_authz_user.so
36LoadModule authz_owner_module modules/mod_authz_owner.so
37LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
38#LoadModule authz_dbm_module modules/mod_authz_dbm.so
39LoadModule authz_default_module modules/mod_authz_default.so
40LoadModule ldap_module modules/mod_ldap.so
41#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
42LoadModule include_module modules/mod_include.so
43LoadModule log_config_module modules/mod_log_config.so
44#LoadModule logio_module modules/mod_logio.so
45LoadModule env_module modules/mod_env.so
46LoadModule ext_filter_module modules/mod_ext_filter.so
47#LoadModule mime_magic_module modules/mod_mime_magic.so
48LoadModule expires_module modules/mod_expires.so
49#LoadModule deflate_module modules/mod_deflate.so
50LoadModule headers_module modules/mod_headers.so
51#LoadModule usertrack_module modules/mod_usertrack.so
52LoadModule setenvif_module modules/mod_setenvif.so
53LoadModule mime_module modules/mod_mime.so
54#LoadModule dav_module modules/mod_dav.so
55#LoadModule status_module modules/mod_status.so
56LoadModule autoindex_module modules/mod_autoindex.so
57#LoadModule info_module modules/mod_info.so
58#LoadModule dav_fs_module modules/mod_dav_fs.so
59#LoadModule vhost_alias_module modules/mod_vhost_alias.so
60LoadModule negotiation_module modules/mod_negotiation.so
61LoadModule dir_module modules/mod_dir.so
62LoadModule actions_module modules/mod_actions.so
63#LoadModule speling_module modules/mod_speling.so
64LoadModule userdir_module modules/mod_userdir.so
65LoadModule alias_module modules/mod_alias.so
66LoadModule rewrite_module modules/mod_rewrite.so
67#LoadModule proxy_module modules/mod_proxy.so
68#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
69#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
70#LoadModule proxy_http_module modules/mod_proxy_http.so
71#LoadModule proxy_connect_module modules/mod_proxy_connect.so
72#LoadModule cache_module modules/mod_cache.so
73LoadModule suexec_module modules/mod_suexec.so
74#LoadModule disk_cache_module modules/mod_disk_cache.so
75#LoadModule file_cache_module modules/mod_file_cache.so
76#LoadModule mem_cache_module modules/mod_mem_cache.so
77LoadModule cgi_module modules/mod_cgi.so
78LoadModule ssl_module modules/mod_ssl.so
79LoadModule vhost_ldap_module modules/mod_vhost_ldap.so
80
81User apache
82Group apache
83
84#ErrorDocument  403  /403-404.html
85#ErrorDocument  404  /403-404.html
86#ErrorDocument  500  /script_error.html
87
88UserDir disabled
89
90<Directory />
91    AllowOverride None
92    Options FollowSymLinks IncludesNoExec
93</Directory>
94
95<Directory /afs/*/*/web_scripts>
96    AllowOverride All
97</Directory>
98<Directory /afs/*/*/*/web_scripts>
99    AllowOverride All
100</Directory>
101<Directory /afs/*/*/*/*/web_scripts>
102    AllowOverride All
103</Directory>
104<Directory /afs/*/*/*/*/*/web_scripts>
105    AllowOverride All
106</Directory>
107<Directory /afs/*/*/*/*/*/*/web_scripts>
108    AllowOverride All
109</Directory>
110<Directory /afs/*/*/*/*/*/*/*/web_scripts>
111    AllowOverride All
112</Directory>
113<Directory /afs/*/*/*/*/*/*/*/*/web_scripts>
114    AllowOverride All
115</Directory>
116
117<IfModule mod_dir.c>
118    DirectoryIndex index index.html index.htm index.cgi index.pl index.php index.py index.shtml index.exe
119</IfModule>
120
121AccessFileName .htaccess
122
123<Files ~ "^\.ht">
124    Order Allow,Deny
125    Deny from all
126</Files>
127
128UseCanonicalName Off
129TypesConfig /etc/mime.types
130DefaultType text/plain
131#MIMEMagicFile conf/magic
132
133HostnameLookups Off
134ErrorLog "/home/logview/error_log"
135LogLevel warn
136LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
137LogFormat "%h %l %u %t \"%r\" %>s %b" common
138#CustomLog /var/log/httpd/access_log combined
139ServerSignature Off
140ServerAdmin scripts@mit.edu
141ServerTokens Prod
142
143<IfModule mod_autoindex.c>
144    Alias /__scripts/icons /var/www/icons
145    <Directory /var/www/icons>
146        Options None
147        AllowOverride None
148        <Files ~ "\.(gif|png)$">
149            SetHandler default-handler
150        </Files>
151    </Directory>
152
153    IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
154
155    AddIconByEncoding (CMP,/__scripts/icons/compressed.gif) x-compress x-gzip
156
157    AddIconByType (TXT,/__scripts/icons/text.gif) text/*
158    AddIconByType (IMG,/__scripts/icons/image2.gif) image/*
159    AddIconByType (SND,/__scripts/icons/sound2.gif) audio/*
160    AddIconByType (VID,/__scripts/icons/movie.gif) video/*
161
162    AddIcon /__scripts/icons/binary.gif .bin .exe
163    AddIcon /__scripts/icons/binhex.gif .hqx
164    AddIcon /__scripts/icons/tar.gif .tar
165    AddIcon /__scripts/icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
166    AddIcon /__scripts/icons/compressed.gif .Z .z .tgz .gz .zip
167    AddIcon /__scripts/icons/a.gif .ps .ai .eps
168    AddIcon /__scripts/icons/layout.gif .html .shtml .htm .pdf
169    AddIcon /__scripts/icons/text.gif .txt
170    AddIcon /__scripts/icons/c.gif .c
171    AddIcon /__scripts/icons/p.gif .pl .py
172    AddIcon /__scripts/icons/f.gif .for
173    AddIcon /__scripts/icons/dvi.gif .dvi
174    AddIcon /__scripts/icons/uuencoded.gif .uu
175    AddIcon /__scripts/icons/script.gif .conf .sh .shar .csh .ksh .tcl
176    AddIcon /__scripts/icons/tex.gif .tex
177    AddIcon /__scripts/icons/bomb.gif core
178    AddIcon /__scripts/icons/deb.gif .deb
179
180    AddIcon /__scripts/icons/back.gif ..
181    AddIcon /__scripts/icons/hand.right.gif README
182    AddIcon /__scripts/icons/folder.gif ^^DIRECTORY^^
183    AddIcon /__scripts/icons/blank.gif ^^BLANKICON^^
184
185    DefaultIcon /__scripts/icons/unknown.gif
186
187    ReadmeName README
188    HeaderName HEADER
189   
190    IndexIgnore .??* *~ *# RCS CVS *,v *,t
191</IfModule>
192
193<IfModule mod_mime.c>
194    AddType application/xhtml+xml         .xhtml
195    AddType application/http-index-format .hti
196    AddType text/html                     .html
197    AddType text/css                      .css
198    AddType text/xsl                      .xslt
199    AddType application/x-javascript      .js
200    AddType application/xml               .xml
201    AddType image/svg+xml                 .svg
202    AddType application/vnd.mozilla.xul+xml .xul
203    AddType application/rdf+xml             .rdf
204    AddType application/x-xpinstall         .xpi
205    AddType text/xml .xsl
206    AddType text/html .shtml
207    AddHandler server-parsed .shtml
208
209    AddEncoding x-compress Z
210    AddEncoding x-gzip gz tgz
211
212    AddLanguage da .dk
213    AddLanguage nl .nl
214    AddLanguage en .en
215    AddLanguage et .ee
216    AddLanguage fr .fr
217    AddLanguage de .de
218    AddLanguage el .el
219    AddLanguage it .it
220    AddLanguage ja .ja
221    AddCharset ISO-2022-JP .jis
222    AddLanguage pl .po
223    AddCharset ISO-8859-2 .iso-pl
224    AddLanguage pt .pt
225    AddLanguage pt-br .pt-br
226    AddLanguage ltz .lu
227    AddLanguage ca .ca
228    AddLanguage es .es
229    AddLanguage sv .se
230    AddLanguage cz .cz
231
232    <IfModule mod_negotiation.c>
233        LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv
234    </IfModule>
235
236    AddType application/x-tar .tgz
237    AddType image/bmp .bmp
238
239    AddType text/x-hdml .hdml
240</IfModule>
241
242<IfModule mod_setenvif.c>
243    BrowserMatch "Mozilla/2" nokeepalive
244    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
245    BrowserMatch "RealPlayer 4\.0" force-response-1.0
246    BrowserMatch "Java/1\.0" force-response-1.0
247    BrowserMatch "JDK/1\.0" force-response-1.0
248    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
249</IfModule>
250
251Listen 80
252
253RLimitCPU 60 60
254RLimitMEM 536870912 536870912
255RLimitNPROC 1024 1024
256
257SetEnv REDIRECT_STATUS CGI
258SetEnv PHPRC .
259
260NameVirtualHost *:80
261NameVirtualHost *:443
262NameVirtualHost *:444
263NameVirtualHost 18.181.0.50:80
264NameVirtualHost 18.181.0.50:443
265NameVirtualHost 18.181.0.50:444
266
267ServerName localhost
268DocumentRoot /afs/athena.mit.edu/contrib/scripts/www
269
270#ExtendedStatus On
271RewriteEngine Off
272
273<Location /robots.txt>
274    ErrorDocument 404 "No robots.txt.
275</Location>
276<Location /favicon.ico>
277    ErrorDocument 404 "No favicon.ico.
278</Location>
279
280<VirtualHost 18.181.0.50:80>
281    ServerName scripts-cert.mit.edu
282    ServerAlias scripts-cert
283    Include conf.d/scripts-vhost.conf
284    Include conf.d/vhosts-common.conf
285</VirtualHost>
286
287# LDAP vhost, w00t w00t
288<VirtualHost *:80>
289    Include conf.d/vhost_ldap.conf
290    Include conf.d/vhosts-common.conf
291</VirtualHost>
292
293<VirtualHost *:80>
294    Include conf.d/scripts-vhost-names.conf
295    Include conf.d/scripts-vhost.conf
296    Include conf.d/vhosts-common.conf
297</VirtualHost>
298
299<IfModule ssl_module>
300    Listen 443
301    Listen 444
302
303    AddType application/x-x509-ca-cert .crt
304    AddType application/x-pkcs7-crl    .crl
305
306    SSLPassPhraseDialog  builtin
307    SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
308    SSLSessionCacheTimeout 28800
309    SSLMutex default
310    SSLRandomSeed startup file:/dev/urandom 256
311    SSLRandomSeed connect builtin
312    SSLCryptoDevice builtin
313    SSLCertificateFile /etc/pki/tls/certs/scripts.pem
314    SSLCertificateKeyFile /etc/pki/tls/private/scripts.key
315    SSLCACertificateFile /etc/pki/tls/certs/ca.pem
316    SSLVerifyClient none
317    SSLOptions +StdEnvVars
318    SSLProtocol all -SSLv2
319    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
320    <VirtualHost 18.181.0.50:443 18.181.0.50:444>
321        ServerName scripts-cert.mit.edu
322        ServerAlias scripts-cert
323        Include conf.d/scripts-vhost.conf
324        Include conf.d/vhosts-common-ssl.conf
325        SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
326        Include conf.d/vhosts-common-ssl-cert.conf
327    </VirtualHost>
328    # LDAP vhost, w00t w00t
329    <VirtualHost *:443>
330        ServerName localhost
331        Include conf.d/vhost_ldap.conf
332        Include conf.d/vhosts-common-ssl.conf
333    </VirtualHost>
334    <VirtualHost *:443>
335        ServerName scripts.scripts.mit.edu
336        ServerAlias *.scripts.mit.edu *.scripts
337        SSLCertificateFile /etc/pki/tls/certs/star.scripts.pem
338        Include conf.d/vhost_ldap.conf
339        Include conf.d/vhosts-common-ssl.conf
340    </VirtualHost>
341    <VirtualHost *:443>
342        Include conf.d/scripts-vhost-names.conf
343        Include conf.d/scripts-vhost.conf
344        Include conf.d/vhosts-common-ssl.conf
345    </VirtualHost>
346    # LDAP vhost, w00t w00t
347    <VirtualHost *:444>
348        ServerName localhost
349        Include conf.d/vhost_ldap.conf
350        Include conf.d/vhosts-common-ssl.conf
351        Include conf.d/vhosts-common-ssl-cert.conf
352    </VirtualHost>
353    <VirtualHost *:444>
354        ServerName scripts.scripts.mit.edu
355        ServerAlias *.scripts.mit.edu *.scripts
356        SSLCertificateFile /etc/pki/tls/certs/star.scripts.pem
357        Include conf.d/vhost_ldap.conf
358        Include conf.d/vhosts-common-ssl.conf
359        Include conf.d/vhosts-common-ssl-cert.conf
360    </VirtualHost>
361    <VirtualHost *:444>
362        Include conf.d/scripts-vhost-names.conf
363        Include conf.d/scripts-vhost.conf
364        Include conf.d/vhosts-common-ssl.conf
365        Include conf.d/vhosts-common-ssl-cert.conf
366    </VirtualHost>
367</IfModule>
368
369LoadModule fcgid_module modules/mod_fcgid.so
370AddHandler fcgid-script fcgi
371<Files *.fcgi>
372        Options +ExecCGI
373</Files>
374SocketPath run/mod_fcgid
375
376Include conf.d/auth_sslcert.conf
377Include conf.d/execsys.conf
378Include conf.d/scripts-special.conf
Note: See TracBrowser for help on using the repository browser.