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

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