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

Last change on this file since 509 was 509, checked in by andersk, 17 years ago
Apparently sendfile() breaks with kernel 2.6.23 and openafs 1.4.5.
File size: 10.6 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
34#LoadModule expires_module modules/mod_expires.so
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
46#LoadModule 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
[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
[509]74<Directory /afs>
75    EnableSendfile off
76</Directory>
77
[247]78UserDir disabled
[39]79
80<Directory />
81    AllowOverride All
82    Options FollowSymLinks IncludesNoExec
83</Directory>
84
85<IfModule mod_dir.c>
[257]86    DirectoryIndex index.html index.htm index.cgi index.pl index.php index.py index.shtml index.exe
[39]87</IfModule>
88
89AccessFileName .htaccess
90
91<Files ~ "^\.ht">
[257]92    Order Allow,Deny
93    Deny from all
[39]94</Files>
95
96UseCanonicalName Off
97TypesConfig /etc/mime.types
98DefaultType text/plain
99#MIMEMagicFile conf/magic
100
101HostnameLookups Off
[149]102ErrorLog "/home/logview/error_log"
[39]103LogLevel warn
104LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
105LogFormat "%h %l %u %t \"%r\" %>s %b" common
106#CustomLog /var/log/httpd/access_log combined
107ServerSignature Off
108ServerAdmin scripts@mit.edu
109ServerTokens Prod
110
[257]111<IfModule mod_autoindex.c>
112    Alias /icons /var/www/icons
113    <Directory /var/www/icons>
114        Options None
115        AllowOverride None
116        <Files ~ "\.(gif|png)$">
117            SetHandler default-handler
118        </Files>
119    </Directory>
[39]120
121    IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
122
123    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
124
125    AddIconByType (TXT,/icons/text.gif) text/*
126    AddIconByType (IMG,/icons/image2.gif) image/*
127    AddIconByType (SND,/icons/sound2.gif) audio/*
128    AddIconByType (VID,/icons/movie.gif) video/*
129
130    AddIcon /icons/binary.gif .bin .exe
131    AddIcon /icons/binhex.gif .hqx
132    AddIcon /icons/tar.gif .tar
133    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
134    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
135    AddIcon /icons/a.gif .ps .ai .eps
136    AddIcon /icons/layout.gif .html .shtml .htm .pdf
137    AddIcon /icons/text.gif .txt
138    AddIcon /icons/c.gif .c
139    AddIcon /icons/p.gif .pl .py
140    AddIcon /icons/f.gif .for
141    AddIcon /icons/dvi.gif .dvi
142    AddIcon /icons/uuencoded.gif .uu
143    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
144    AddIcon /icons/tex.gif .tex
145    AddIcon /icons/bomb.gif core
146    AddIcon /icons/deb.gif .deb
147
148    AddIcon /icons/back.gif ..
149    AddIcon /icons/hand.right.gif README
150    AddIcon /icons/folder.gif ^^DIRECTORY^^
151    AddIcon /icons/blank.gif ^^BLANKICON^^
152
153    DefaultIcon /icons/unknown.gif
154
155    ReadmeName README
156    HeaderName HEADER
157   
[477]158    IndexIgnore .??* *~ *# RCS CVS *,v *,t
[39]159</IfModule>
160
161<IfModule mod_mime.c>
[257]162    AddType application/xhtml+xml         .xhtml
163    AddType application/http-index-format .hti
164    AddType text/html                     .html
165    AddType text/css                      .css
166    AddType text/xsl                      .xslt
167    AddType application/x-javascript      .js
168    AddType application/xml               .xml
169    AddType image/svg+xml                 .svg
170    AddType application/vnd.mozilla.xul+xml .xul
171    AddType application/rdf+xml             .rdf
172    AddType application/x-xpinstall         .xpi
173    AddType text/xml .xsl
174    AddType text/html .shtml
175    AddHandler server-parsed .shtml
[39]176
177    AddEncoding x-compress Z
178    AddEncoding x-gzip gz tgz
179
180    AddLanguage da .dk
181    AddLanguage nl .nl
182    AddLanguage en .en
183    AddLanguage et .ee
184    AddLanguage fr .fr
185    AddLanguage de .de
186    AddLanguage el .el
187    AddLanguage it .it
188    AddLanguage ja .ja
189    AddCharset ISO-2022-JP .jis
190    AddLanguage pl .po
191    AddCharset ISO-8859-2 .iso-pl
192    AddLanguage pt .pt
193    AddLanguage pt-br .pt-br
194    AddLanguage ltz .lu
195    AddLanguage ca .ca
196    AddLanguage es .es
197    AddLanguage sv .se
198    AddLanguage cz .cz
199
200    <IfModule mod_negotiation.c>
201        LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv
202    </IfModule>
203
204    AddType application/x-tar .tgz
205    AddType image/bmp .bmp
206
207    AddType text/x-hdml .hdml
208</IfModule>
209
210<IfModule mod_setenvif.c>
211    BrowserMatch "Mozilla/2" nokeepalive
212    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
213    BrowserMatch "RealPlayer 4\.0" force-response-1.0
214    BrowserMatch "Java/1\.0" force-response-1.0
215    BrowserMatch "JDK/1\.0" force-response-1.0
216    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
217</IfModule>
218
219Listen 80
220
221RLimitCPU 60 60
[301]222RLimitMEM 536870912 536870912
[39]223RLimitNPROC 1024 1024
224
225SetEnv REDIRECT_STATUS CGI
226SetEnv PHPRC .
227
228NameVirtualHost *:80
229NameVirtualHost *:443
[332]230NameVirtualHost *:444
[151]231NameVirtualHost 18.181.0.50:80
232NameVirtualHost 18.181.0.50:443
[332]233NameVirtualHost 18.181.0.50:444
[39]234
235ServerName localhost
236DocumentRoot /afs/athena.mit.edu/contrib/scripts/www
[151]237
238ExtendedStatus On
239RewriteEngine Off
240
[330]241<Location /robots.txt>
242    ErrorDocument 404 "No robots.txt.
[151]243</Location>
[330]244<Location /favicon.ico>
245    ErrorDocument 404 "No favicon.ico.
246</Location>
[151]247
248<VirtualHost 18.181.0.50:80>
[257]249    ServerName scripts-cert.mit.edu
250    ServerAlias scripts-cert
[330]251    Include conf.d/scripts-vhost.conf
[257]252    Include conf.d/vhosts-common.conf
[151]253</VirtualHost>
254
[454]255# LDAP vhost, w00t w00t
[478]256<VirtualHost *:80>
257    Include conf.d/vhost_ldap.conf
258    Include conf.d/vhosts-common.conf
259</VirtualHost>
[454]260
[151]261<VirtualHost *:80>
[332]262    Include conf.d/scripts-vhost-names.conf
[330]263    Include conf.d/scripts-vhost.conf
[257]264    Include conf.d/vhosts-common.conf
[151]265</VirtualHost>
266
[358]267<VirtualHost *:80>
268    Include conf.d/vhosts-vhost-names.conf
269    DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
270    Include conf.d/vhosts-common.conf
271</VirtualHost>
272
[244]273<IfModule ssl_module>
[257]274    Listen 443
[332]275    Listen 444
[233]276
[257]277    AddType application/x-x509-ca-cert .crt
278    AddType application/x-pkcs7-crl    .crl
[233]279
[257]280    SSLPassPhraseDialog  builtin
281    SSLSessionCache dbm:/var/run/ssl_scache
282    SSLSessionCacheTimeout 300
283    SSLMutex file:/var/run/ssl_mutex
284    SSLRandomSeed startup builtin
285    SSLRandomSeed connect builtin
[369]286    SSLCertificateFile /etc/pki/tls/certs/scripts.pem
[370]287    SSLCertificateKeyFile /etc/pki/tls/private/scripts.key
[257]288    SSLCACertificateFile /etc/pki/tls/certs/ca.pem
289    SSLVerifyClient none
290    SSLOptions +StdEnvVars
[454]291    SSLUserName SSL_CLIENT_S_DN_Email
[332]292    <VirtualHost 18.181.0.50:443 18.181.0.50:444>
[257]293        ServerName scripts-cert.mit.edu
294        ServerAlias scripts-cert
[330]295        Include conf.d/scripts-vhost.conf
[257]296        Include conf.d/vhosts-common-ssl.conf
[369]297        SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
[270]298        Include conf.d/vhosts-common-ssl-cert.conf
[257]299    </VirtualHost>
[478]300    # LDAP vhost, w00t w00t
[257]301    <VirtualHost *:443>
[478]302        Include conf.d/vhost_ldap.conf
303        Include conf.d/vhosts-common-ssl.conf
304    </VirtualHost>
305    <VirtualHost *:443>
[332]306        Include conf.d/scripts-vhost-names.conf
[330]307        Include conf.d/scripts-vhost.conf
[257]308        Include conf.d/vhosts-common-ssl.conf
309    </VirtualHost>
[358]310    <VirtualHost *:443>
311        Include conf.d/vhosts-vhost-names.conf
[332]312        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
313        Include conf.d/vhosts-common-ssl.conf
314    </VirtualHost>
[478]315    # LDAP vhost, w00t w00t
[332]316    <VirtualHost *:444>
[478]317        Include conf.d/vhost_ldap.conf
318        Include conf.d/vhosts-common-ssl.conf
319        Include conf.d/vhosts-common-ssl-cert.conf
320    </VirtualHost>
321    <VirtualHost *:444>
[332]322        Include conf.d/scripts-vhost-names.conf
323        Include conf.d/scripts-vhost.conf
324        Include conf.d/vhosts-common-ssl.conf
325        Include conf.d/vhosts-common-ssl-cert.conf
326    </VirtualHost>
[358]327    <VirtualHost *:444>
328        Include conf.d/vhosts-vhost-names.conf
329        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
330        Include conf.d/vhosts-common-ssl.conf
331        Include conf.d/vhosts-common-ssl-cert.conf
332    </VirtualHost>
[151]333</IfModule>
334
335Include vhosts.d/*.conf
336
337LoadModule fcgid_module modules/mod_fcgid.so
338AddHandler fcgid-script fcgi
339<Files *.fcgi>
340        Options +ExecCGI
341</Files>
342SocketPath run/mod_fcgid
343
[70]344Include conf.d/auth_sslcert.conf
[40]345Include conf.d/execsys.conf
Note: See TracBrowser for help on using the repository browser.