1 | #ServerType standalone |
---|
2 | ServerRoot /etc/httpd |
---|
3 | #LockFile /var/lock/apache.lock |
---|
4 | PidFile run/httpd.pid |
---|
5 | #ScoreBoardFile /var/run/apache.scoreboard |
---|
6 | Timeout 300 |
---|
7 | KeepAlive On |
---|
8 | MaxKeepAliveRequests 1000 |
---|
9 | KeepAliveTimeout 15 |
---|
10 | MinSpareServers 5 |
---|
11 | MaxSpareServers 20 |
---|
12 | StartServers 8 |
---|
13 | MaxClients 256 |
---|
14 | MaxRequestsPerChild 4000 |
---|
15 | |
---|
16 | LoadModule auth_basic_module modules/mod_auth_basic.so |
---|
17 | LoadModule auth_digest_module modules/mod_auth_digest.so |
---|
18 | LoadModule authn_file_module modules/mod_authn_file.so |
---|
19 | LoadModule authn_alias_module modules/mod_authn_alias.so |
---|
20 | LoadModule authn_anon_module modules/mod_authn_anon.so |
---|
21 | #LoadModule authn_dbm_module modules/mod_authn_dbm.so |
---|
22 | LoadModule authn_default_module modules/mod_authn_default.so |
---|
23 | LoadModule authz_host_module modules/mod_authz_host.so |
---|
24 | LoadModule authz_user_module modules/mod_authz_user.so |
---|
25 | LoadModule authz_owner_module modules/mod_authz_owner.so |
---|
26 | LoadModule authz_groupfile_module modules/mod_authz_groupfile.so |
---|
27 | #LoadModule authz_dbm_module modules/mod_authz_dbm.so |
---|
28 | LoadModule authz_default_module modules/mod_authz_default.so |
---|
29 | #LoadModule ldap_module modules/mod_ldap.so |
---|
30 | #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so |
---|
31 | LoadModule include_module modules/mod_include.so |
---|
32 | LoadModule log_config_module modules/mod_log_config.so |
---|
33 | #LoadModule logio_module modules/mod_logio.so |
---|
34 | LoadModule env_module modules/mod_env.so |
---|
35 | LoadModule ext_filter_module modules/mod_ext_filter.so |
---|
36 | #LoadModule mime_magic_module modules/mod_mime_magic.so |
---|
37 | #LoadModule expires_module modules/mod_expires.so |
---|
38 | #LoadModule deflate_module modules/mod_deflate.so |
---|
39 | #LoadModule headers_module modules/mod_headers.so |
---|
40 | #LoadModule usertrack_module modules/mod_usertrack.so |
---|
41 | LoadModule setenvif_module modules/mod_setenvif.so |
---|
42 | LoadModule mime_module modules/mod_mime.so |
---|
43 | #LoadModule dav_module modules/mod_dav.so |
---|
44 | #LoadModule status_module modules/mod_status.so |
---|
45 | LoadModule autoindex_module modules/mod_autoindex.so |
---|
46 | #LoadModule info_module modules/mod_info.so |
---|
47 | #LoadModule dav_fs_module modules/mod_dav_fs.so |
---|
48 | #LoadModule vhost_alias_module modules/mod_vhost_alias.so |
---|
49 | #LoadModule negotiation_module modules/mod_negotiation.so |
---|
50 | LoadModule dir_module modules/mod_dir.so |
---|
51 | LoadModule actions_module modules/mod_actions.so |
---|
52 | #LoadModule speling_module modules/mod_speling.so |
---|
53 | LoadModule userdir_module modules/mod_userdir.so |
---|
54 | LoadModule alias_module modules/mod_alias.so |
---|
55 | LoadModule rewrite_module modules/mod_rewrite.so |
---|
56 | #LoadModule proxy_module modules/mod_proxy.so |
---|
57 | #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so |
---|
58 | #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so |
---|
59 | #LoadModule proxy_http_module modules/mod_proxy_http.so |
---|
60 | #LoadModule proxy_connect_module modules/mod_proxy_connect.so |
---|
61 | #LoadModule cache_module modules/mod_cache.so |
---|
62 | LoadModule suexec_module modules/mod_suexec.so |
---|
63 | #LoadModule disk_cache_module modules/mod_disk_cache.so |
---|
64 | #LoadModule file_cache_module modules/mod_file_cache.so |
---|
65 | #LoadModule mem_cache_module modules/mod_mem_cache.so |
---|
66 | LoadModule cgi_module modules/mod_cgi.so |
---|
67 | LoadModule ssl_module modules/mod_ssl.so |
---|
68 | |
---|
69 | User apache |
---|
70 | Group apache |
---|
71 | |
---|
72 | #ErrorDocument 403 /403-404.html |
---|
73 | #ErrorDocument 404 /403-404.html |
---|
74 | #ErrorDocument 500 /script_error.html |
---|
75 | |
---|
76 | UserDir web_scripts |
---|
77 | |
---|
78 | <Directory /> |
---|
79 | AllowOverride All |
---|
80 | Options FollowSymLinks IncludesNoExec |
---|
81 | </Directory> |
---|
82 | |
---|
83 | <Directory /mit/*/web_scripts> |
---|
84 | AllowOverride All |
---|
85 | Options FollowSymLinks IncludesNoExec |
---|
86 | </Directory> |
---|
87 | |
---|
88 | <Directory /afs/athena.mit.edu/activity/*/*/web_scripts> |
---|
89 | AllowOverride All |
---|
90 | Options FollowSymLinks IncludesNoExec |
---|
91 | </Directory> |
---|
92 | |
---|
93 | <Directory /afs/athena.mit.edu/contrib/*/web_scripts> |
---|
94 | AllowOverride All |
---|
95 | Options FollowSymLinks IncludesNoExec |
---|
96 | </Directory> |
---|
97 | |
---|
98 | <Directory /afs/athena.mit.edu/course/*/*/web_scripts> |
---|
99 | AllowOverride All |
---|
100 | Options FollowSymLinks IncludesNoExec |
---|
101 | </Directory> |
---|
102 | |
---|
103 | <Directory /afs/athena.mit.edu/org/*/*/web_scripts> |
---|
104 | AllowOverride All |
---|
105 | Options FollowSymLinks IncludesNoExec |
---|
106 | </Directory> |
---|
107 | |
---|
108 | <Directory /afs/athena.mit.edu/user/*/*/*/web_scripts> |
---|
109 | AllowOverride All |
---|
110 | Options FollowSymLinks IncludesNoExec |
---|
111 | </Directory> |
---|
112 | |
---|
113 | <IfModule mod_dir.c> |
---|
114 | DirectoryIndex index.html index.htm index.cgi index.pl index.php index.py index.shtml |
---|
115 | </IfModule> |
---|
116 | |
---|
117 | AccessFileName .htaccess |
---|
118 | |
---|
119 | <Files ~ "^\.ht"> |
---|
120 | Order Allow,Deny |
---|
121 | Deny from all |
---|
122 | </Files> |
---|
123 | |
---|
124 | UseCanonicalName Off |
---|
125 | TypesConfig /etc/mime.types |
---|
126 | DefaultType text/plain |
---|
127 | #MIMEMagicFile conf/magic |
---|
128 | |
---|
129 | AddDefaultCharset on |
---|
130 | |
---|
131 | HostnameLookups Off |
---|
132 | #ErrorLog "| sudo -u afsagent /usr/local/bin/process_logs" |
---|
133 | ErrorLog "/var/log/httpd/error_log" |
---|
134 | LogLevel warn |
---|
135 | LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined |
---|
136 | LogFormat "%h %l %u %t \"%r\" %>s %b" common |
---|
137 | LogFormat "%{Referer}i -> %U" referer |
---|
138 | LogFormat "%{User-agent}i" agent |
---|
139 | #CustomLog /var/log/httpd/access_log combined |
---|
140 | ServerSignature Off |
---|
141 | ServerAdmin scripts@mit.edu |
---|
142 | ServerTokens Prod |
---|
143 | |
---|
144 | Alias /icons /var/www/icons |
---|
145 | <Directory /var/www/icons> |
---|
146 | Options None |
---|
147 | AllowOverride None |
---|
148 | <Files ~ "\.(gif|png)$"> |
---|
149 | SetHandler default-handler |
---|
150 | </Files> |
---|
151 | </Directory> |
---|
152 | |
---|
153 | <IfModule mod_autoindex.c> |
---|
154 | IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable |
---|
155 | |
---|
156 | AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip |
---|
157 | |
---|
158 | AddIconByType (TXT,/icons/text.gif) text/* |
---|
159 | AddIconByType (IMG,/icons/image2.gif) image/* |
---|
160 | AddIconByType (SND,/icons/sound2.gif) audio/* |
---|
161 | AddIconByType (VID,/icons/movie.gif) video/* |
---|
162 | |
---|
163 | AddIcon /icons/binary.gif .bin .exe |
---|
164 | AddIcon /icons/binhex.gif .hqx |
---|
165 | AddIcon /icons/tar.gif .tar |
---|
166 | AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv |
---|
167 | AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip |
---|
168 | AddIcon /icons/a.gif .ps .ai .eps |
---|
169 | AddIcon /icons/layout.gif .html .shtml .htm .pdf |
---|
170 | AddIcon /icons/text.gif .txt |
---|
171 | AddIcon /icons/c.gif .c |
---|
172 | AddIcon /icons/p.gif .pl .py |
---|
173 | AddIcon /icons/f.gif .for |
---|
174 | AddIcon /icons/dvi.gif .dvi |
---|
175 | AddIcon /icons/uuencoded.gif .uu |
---|
176 | AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl |
---|
177 | AddIcon /icons/tex.gif .tex |
---|
178 | AddIcon /icons/bomb.gif core |
---|
179 | AddIcon /icons/deb.gif .deb |
---|
180 | |
---|
181 | AddIcon /icons/back.gif .. |
---|
182 | AddIcon /icons/hand.right.gif README |
---|
183 | AddIcon /icons/folder.gif ^^DIRECTORY^^ |
---|
184 | AddIcon /icons/blank.gif ^^BLANKICON^^ |
---|
185 | |
---|
186 | DefaultIcon /icons/unknown.gif |
---|
187 | |
---|
188 | ReadmeName README |
---|
189 | HeaderName HEADER |
---|
190 | |
---|
191 | IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t |
---|
192 | </IfModule> |
---|
193 | |
---|
194 | <IfModule mod_mime.c> |
---|
195 | AddType application/xhtml+xml .xhtml |
---|
196 | AddType application/http-index-format .hti |
---|
197 | AddType text/html .html |
---|
198 | AddType text/css .css |
---|
199 | AddType text/xsl .xslt |
---|
200 | AddType application/x-javascript .js |
---|
201 | AddType application/xml .xml |
---|
202 | AddType image/svg+xml .svg |
---|
203 | AddType application/vnd.mozilla.xul+xml .xul |
---|
204 | AddType application/rdf+xml .rdf |
---|
205 | AddType application/x-xpinstall .xpi |
---|
206 | AddType text/xml .xsl |
---|
207 | #AddOutputFilterByType mod-xslt application/xml |
---|
208 | AddType text/html .shtml |
---|
209 | AddHandler server-parsed .shtml |
---|
210 | </IfModule> |
---|
211 | |
---|
212 | <IfModule mod_mime.c> |
---|
213 | AddEncoding x-compress Z |
---|
214 | AddEncoding x-gzip gz tgz |
---|
215 | |
---|
216 | AddLanguage da .dk |
---|
217 | AddLanguage nl .nl |
---|
218 | AddLanguage en .en |
---|
219 | AddLanguage et .ee |
---|
220 | AddLanguage fr .fr |
---|
221 | AddLanguage de .de |
---|
222 | AddLanguage el .el |
---|
223 | AddLanguage it .it |
---|
224 | AddLanguage ja .ja |
---|
225 | AddCharset ISO-2022-JP .jis |
---|
226 | AddLanguage pl .po |
---|
227 | AddCharset ISO-8859-2 .iso-pl |
---|
228 | AddLanguage pt .pt |
---|
229 | AddLanguage pt-br .pt-br |
---|
230 | AddLanguage ltz .lu |
---|
231 | AddLanguage ca .ca |
---|
232 | AddLanguage es .es |
---|
233 | AddLanguage sv .se |
---|
234 | AddLanguage cz .cz |
---|
235 | |
---|
236 | <IfModule mod_negotiation.c> |
---|
237 | LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv |
---|
238 | </IfModule> |
---|
239 | |
---|
240 | #AddType application/x-httpd-php .php |
---|
241 | #AddType application/x-httpd-php-source .phps |
---|
242 | |
---|
243 | AddType application/x-tar .tgz |
---|
244 | AddType image/bmp .bmp |
---|
245 | |
---|
246 | # hdml |
---|
247 | AddType text/x-hdml .hdml |
---|
248 | |
---|
249 | #AddType text/html .shtml |
---|
250 | #AddHandler server-parsed .shtml |
---|
251 | </IfModule> |
---|
252 | |
---|
253 | <IfModule mod_setenvif.c> |
---|
254 | BrowserMatch "Mozilla/2" nokeepalive |
---|
255 | BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 |
---|
256 | BrowserMatch "RealPlayer 4\.0" force-response-1.0 |
---|
257 | BrowserMatch "Java/1\.0" force-response-1.0 |
---|
258 | BrowserMatch "JDK/1\.0" force-response-1.0 |
---|
259 | SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown |
---|
260 | </IfModule> |
---|
261 | |
---|
262 | Listen 80 |
---|
263 | |
---|
264 | <IfModule mod_ssl.c> |
---|
265 | Listen 443 |
---|
266 | |
---|
267 | AddType application/x-x509-ca-cert .crt |
---|
268 | AddType application/x-pkcs7-crl .crl |
---|
269 | |
---|
270 | SSLPassPhraseDialog builtin |
---|
271 | SSLSessionCache dbm:/var/run/ssl_scache |
---|
272 | SSLSessionCacheTimeout 300 |
---|
273 | SSLMutex file:/var/run/ssl_mutex |
---|
274 | SSLRandomSeed startup builtin |
---|
275 | SSLRandomSeed connect builtin |
---|
276 | </IfModule> |
---|
277 | |
---|
278 | RLimitCPU 60 60 |
---|
279 | #RLimitMEM 536870912 536870912 |
---|
280 | RLimitMEM 268435456 268435456 |
---|
281 | RLimitNPROC 1024 1024 |
---|
282 | |
---|
283 | SetEnv REDIRECT_STATUS CGI |
---|
284 | SetEnv PHPRC . |
---|
285 | |
---|
286 | NameVirtualHost *:80 |
---|
287 | NameVirtualHost *:443 |
---|
288 | |
---|
289 | ServerName localhost |
---|
290 | DocumentRoot /afs/athena.mit.edu/contrib/scripts/www |
---|
291 | Include conf.d/auth_sslcert.conf |
---|
292 | Include conf.d/execsys.conf |
---|
293 | Include /afs/athena.mit.edu/contrib/scripts/vhosts/better-mousetrap.conf |
---|