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
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
34#LoadModule 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
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
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
74<Directory /afs>
75    EnableSendfile off
76</Directory>
77
78UserDir disabled
79
80<Directory />
81    AllowOverride All
82    Options FollowSymLinks IncludesNoExec
83</Directory>
84
85<IfModule mod_dir.c>
86    DirectoryIndex index.html index.htm index.cgi index.pl index.php index.py index.shtml index.exe
87</IfModule>
88
89AccessFileName .htaccess
90
91<Files ~ "^\.ht">
92    Order Allow,Deny
93    Deny from all
94</Files>
95
96UseCanonicalName Off
97TypesConfig /etc/mime.types
98DefaultType text/plain
99#MIMEMagicFile conf/magic
100
101HostnameLookups Off
102ErrorLog "/home/logview/error_log"
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
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>
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   
158    IndexIgnore .??* *~ *# RCS CVS *,v *,t
159</IfModule>
160
161<IfModule mod_mime.c>
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
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
222RLimitMEM 536870912 536870912
223RLimitNPROC 1024 1024
224
225SetEnv REDIRECT_STATUS CGI
226SetEnv PHPRC .
227
228NameVirtualHost *:80
229NameVirtualHost *:443
230NameVirtualHost *:444
231NameVirtualHost 18.181.0.50:80
232NameVirtualHost 18.181.0.50:443
233NameVirtualHost 18.181.0.50:444
234
235ServerName localhost
236DocumentRoot /afs/athena.mit.edu/contrib/scripts/www
237
238ExtendedStatus On
239RewriteEngine Off
240
241<Location /robots.txt>
242    ErrorDocument 404 "No robots.txt.
243</Location>
244<Location /favicon.ico>
245    ErrorDocument 404 "No favicon.ico.
246</Location>
247
248<VirtualHost 18.181.0.50:80>
249    ServerName scripts-cert.mit.edu
250    ServerAlias scripts-cert
251    Include conf.d/scripts-vhost.conf
252    Include conf.d/vhosts-common.conf
253</VirtualHost>
254
255# LDAP vhost, w00t w00t
256<VirtualHost *:80>
257    Include conf.d/vhost_ldap.conf
258    Include conf.d/vhosts-common.conf
259</VirtualHost>
260
261<VirtualHost *:80>
262    Include conf.d/scripts-vhost-names.conf
263    Include conf.d/scripts-vhost.conf
264    Include conf.d/vhosts-common.conf
265</VirtualHost>
266
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
273<IfModule ssl_module>
274    Listen 443
275    Listen 444
276
277    AddType application/x-x509-ca-cert .crt
278    AddType application/x-pkcs7-crl    .crl
279
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
286    SSLCertificateFile /etc/pki/tls/certs/scripts.pem
287    SSLCertificateKeyFile /etc/pki/tls/private/scripts.key
288    SSLCACertificateFile /etc/pki/tls/certs/ca.pem
289    SSLVerifyClient none
290    SSLOptions +StdEnvVars
291    SSLUserName SSL_CLIENT_S_DN_Email
292    <VirtualHost 18.181.0.50:443 18.181.0.50:444>
293        ServerName scripts-cert.mit.edu
294        ServerAlias scripts-cert
295        Include conf.d/scripts-vhost.conf
296        Include conf.d/vhosts-common-ssl.conf
297        SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
298        Include conf.d/vhosts-common-ssl-cert.conf
299    </VirtualHost>
300    # LDAP vhost, w00t w00t
301    <VirtualHost *:443>
302        Include conf.d/vhost_ldap.conf
303        Include conf.d/vhosts-common-ssl.conf
304    </VirtualHost>
305    <VirtualHost *:443>
306        Include conf.d/scripts-vhost-names.conf
307        Include conf.d/scripts-vhost.conf
308        Include conf.d/vhosts-common-ssl.conf
309    </VirtualHost>
310    <VirtualHost *:443>
311        Include conf.d/vhosts-vhost-names.conf
312        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
313        Include conf.d/vhosts-common-ssl.conf
314    </VirtualHost>
315    # LDAP vhost, w00t w00t
316    <VirtualHost *:444>
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>
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>
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>
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
344Include conf.d/auth_sslcert.conf
345Include conf.d/execsys.conf
Note: See TracBrowser for help on using the repository browser.