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

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