source: branches/fc19-dev/server/fedora/config/etc/httpd/conf/httpd.conf @ 2487

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