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

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