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

Last change on this file since 642 was 642, checked in by andersk, 14 years ago
Only check .htaccess files inside web_scripts, thus eliminating a past source of user confusion, and speeding up responses by about 1ms.
File size: 11.3 KB
Line 
1ServerRoot /etc/httpd
2PidFile run/httpd.pid
3Timeout 300
4KeepAlive On
5MaxKeepAliveRequests 1000
6KeepAliveTimeout 5
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
26LoadModule ldap_module modules/mod_ldap.so
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
34LoadModule expires_module modules/mod_expires.so
35#LoadModule deflate_module modules/mod_deflate.so
36LoadModule headers_module modules/mod_headers.so
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
41LoadModule status_module modules/mod_status.so
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
46LoadModule negotiation_module modules/mod_negotiation.so
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
65LoadModule vhost_ldap_module modules/mod_vhost_ldap.so
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
74UserDir disabled
75
76<Directory />
77    AllowOverride None
78    Options FollowSymLinks IncludesNoExec
79</Directory>
80
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
103<IfModule mod_dir.c>
104    DirectoryIndex index index.html index.htm index.cgi index.pl index.php index.py index.shtml index.exe
105</IfModule>
106
107AccessFileName .htaccess
108
109<Files ~ "^\.ht">
110    Order Allow,Deny
111    Deny from all
112</Files>
113
114UseCanonicalName Off
115TypesConfig /etc/mime.types
116DefaultType text/plain
117#MIMEMagicFile conf/magic
118
119HostnameLookups Off
120ErrorLog "/home/logview/error_log"
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
129<IfModule mod_autoindex.c>
130    Alias /__scripts/icons /var/www/icons
131    <Directory /var/www/icons>
132        Options None
133        AllowOverride None
134        <Files ~ "\.(gif|png)$">
135            SetHandler default-handler
136        </Files>
137    </Directory>
138
139    IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
140
141    AddIconByEncoding (CMP,/__scripts/icons/compressed.gif) x-compress x-gzip
142
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/*
147
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
165
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^^
170
171    DefaultIcon /__scripts/icons/unknown.gif
172
173    ReadmeName README
174    HeaderName HEADER
175   
176    IndexIgnore .??* *~ *# RCS CVS *,v *,t
177</IfModule>
178
179<IfModule mod_mime.c>
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
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
240RLimitMEM 536870912 536870912
241RLimitNPROC 1024 1024
242
243SetEnv REDIRECT_STATUS CGI
244SetEnv PHPRC .
245
246NameVirtualHost *:80
247NameVirtualHost *:443
248NameVirtualHost *:444
249NameVirtualHost 18.181.0.50:80
250NameVirtualHost 18.181.0.50:443
251NameVirtualHost 18.181.0.50:444
252
253ServerName localhost
254DocumentRoot /afs/athena.mit.edu/contrib/scripts/www
255
256ExtendedStatus On
257RewriteEngine Off
258
259<Location /robots.txt>
260    ErrorDocument 404 "No robots.txt.
261</Location>
262<Location /favicon.ico>
263    ErrorDocument 404 "No favicon.ico.
264</Location>
265
266<VirtualHost 18.181.0.50:80>
267    ServerName scripts-cert.mit.edu
268    ServerAlias scripts-cert
269    Include conf.d/scripts-vhost.conf
270    Include conf.d/vhosts-common.conf
271</VirtualHost>
272
273# LDAP vhost, w00t w00t
274<VirtualHost *:80>
275    Include conf.d/vhost_ldap.conf
276    Include conf.d/vhosts-common.conf
277</VirtualHost>
278
279<VirtualHost *:80>
280    Include conf.d/scripts-vhost-names.conf
281    Include conf.d/scripts-vhost.conf
282    Include conf.d/vhosts-common.conf
283</VirtualHost>
284
285<VirtualHost *:80>
286    Include conf.d/vhosts-vhost-names.conf
287    DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
288    Include conf.d/vhosts-common.conf
289</VirtualHost>
290
291<IfModule ssl_module>
292    Listen 443
293    Listen 444
294
295    AddType application/x-x509-ca-cert .crt
296    AddType application/x-pkcs7-crl    .crl
297
298    SSLPassPhraseDialog  builtin
299    SSLSessionCache dbm:/var/run/ssl_scache
300    SSLSessionCacheTimeout 300
301    SSLMutex file:/var/run/ssl_mutex
302    SSLRandomSeed startup builtin
303    SSLRandomSeed connect builtin
304    SSLCertificateFile /etc/pki/tls/certs/scripts.pem
305    SSLCertificateKeyFile /etc/pki/tls/private/scripts.key
306    SSLCACertificateFile /etc/pki/tls/certs/ca.pem
307    SSLVerifyClient none
308    SSLOptions +StdEnvVars
309    SSLUserName SSL_CLIENT_S_DN_Email
310    <VirtualHost 18.181.0.50:443 18.181.0.50:444>
311        ServerName scripts-cert.mit.edu
312        ServerAlias scripts-cert
313        Include conf.d/scripts-vhost.conf
314        Include conf.d/vhosts-common-ssl.conf
315        SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
316        Include conf.d/vhosts-common-ssl-cert.conf
317    </VirtualHost>
318    # LDAP vhost, w00t w00t
319    <VirtualHost *:443>
320        Include conf.d/vhost_ldap.conf
321        Include conf.d/vhosts-common-ssl.conf
322    </VirtualHost>
323    <VirtualHost *:443>
324        Include conf.d/scripts-vhost-names.conf
325        Include conf.d/scripts-vhost.conf
326        Include conf.d/vhosts-common-ssl.conf
327    </VirtualHost>
328    <VirtualHost *:443>
329        Include conf.d/vhosts-vhost-names.conf
330        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
331        Include conf.d/vhosts-common-ssl.conf
332    </VirtualHost>
333    # LDAP vhost, w00t w00t
334    <VirtualHost *:444>
335        Include conf.d/vhost_ldap.conf
336        Include conf.d/vhosts-common-ssl.conf
337        Include conf.d/vhosts-common-ssl-cert.conf
338    </VirtualHost>
339    <VirtualHost *:444>
340        Include conf.d/scripts-vhost-names.conf
341        Include conf.d/scripts-vhost.conf
342        Include conf.d/vhosts-common-ssl.conf
343        Include conf.d/vhosts-common-ssl-cert.conf
344    </VirtualHost>
345    <VirtualHost *:444>
346        Include conf.d/vhosts-vhost-names.conf
347        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
348        Include conf.d/vhosts-common-ssl.conf
349        Include conf.d/vhosts-common-ssl-cert.conf
350    </VirtualHost>
351</IfModule>
352
353Include vhosts.d/*.conf
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
362Include conf.d/auth_sslcert.conf
363Include conf.d/execsys.conf
364Include conf.d/scripts-special.conf
Note: See TracBrowser for help on using the repository browser.