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

Last change on this file since 454 was 454, checked in by geofft, 15 years ago
prelim ldap stuff
File size: 10.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
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# LDAP vhost, w00t w00t
251# <VirtualHost *:80>
252#     Include conf.d/vhost_ldap.conf
253#     Include conf.d/vhosts-common.conf
254# </VirtualHost>
255
256<VirtualHost *:80>
257    Include conf.d/scripts-vhost-names.conf
258    Include conf.d/scripts-vhost.conf
259    Include conf.d/vhosts-common.conf
260</VirtualHost>
261
262<VirtualHost *:80>
263    Include conf.d/vhosts-vhost-names.conf
264    DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
265    Include conf.d/vhosts-common.conf
266</VirtualHost>
267
268<IfModule ssl_module>
269    Listen 443
270    Listen 444
271
272    AddType application/x-x509-ca-cert .crt
273    AddType application/x-pkcs7-crl    .crl
274
275    SSLPassPhraseDialog  builtin
276    SSLSessionCache dbm:/var/run/ssl_scache
277    SSLSessionCacheTimeout 300
278    SSLMutex file:/var/run/ssl_mutex
279    SSLRandomSeed startup builtin
280    SSLRandomSeed connect builtin
281    SSLCertificateFile /etc/pki/tls/certs/scripts.pem
282    SSLCertificateKeyFile /etc/pki/tls/private/scripts.key
283    SSLCACertificateFile /etc/pki/tls/certs/ca.pem
284    SSLVerifyClient none
285    SSLOptions +StdEnvVars
286    SSLUserName SSL_CLIENT_S_DN_Email
287    <VirtualHost 18.181.0.50:443 18.181.0.50:444>
288        ServerName scripts-cert.mit.edu
289        ServerAlias scripts-cert
290        Include conf.d/scripts-vhost.conf
291        Include conf.d/vhosts-common-ssl.conf
292        SSLCertificateFile /etc/pki/tls/certs/scripts-cert.pem
293        Include conf.d/vhosts-common-ssl-cert.conf
294    </VirtualHost>
295    <VirtualHost *:443>
296        Include conf.d/scripts-vhost-names.conf
297        Include conf.d/scripts-vhost.conf
298        Include conf.d/vhosts-common-ssl.conf
299    </VirtualHost>
300    <VirtualHost *:443>
301        Include conf.d/vhosts-vhost-names.conf
302        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
303        Include conf.d/vhosts-common-ssl.conf
304    </VirtualHost>
305    <VirtualHost *:444>
306        Include conf.d/scripts-vhost-names.conf
307        Include conf.d/scripts-vhost.conf
308        Include conf.d/vhosts-common-ssl.conf
309        Include conf.d/vhosts-common-ssl-cert.conf
310    </VirtualHost>
311    <VirtualHost *:444>
312        Include conf.d/vhosts-vhost-names.conf
313        DocumentRoot /afs/athena.mit.edu/contrib/scripts/vhosts/server.php
314        Include conf.d/vhosts-common-ssl.conf
315        Include conf.d/vhosts-common-ssl-cert.conf
316    </VirtualHost>
317</IfModule>
318
319Include vhosts.d/*.conf
320
321LoadModule fcgid_module modules/mod_fcgid.so
322AddHandler fcgid-script fcgi
323<Files *.fcgi>
324        Options +ExecCGI
325</Files>
326SocketPath run/mod_fcgid
327
328Include conf.d/auth_sslcert.conf
329Include conf.d/execsys.conf
Note: See TracBrowser for help on using the repository browser.