[system] / branches / rel-2-4-patches / webwork-modperl / conf / devel-site.apache-config.dist Repository:
ViewVC logotype

Annotation of /branches/rel-2-4-patches/webwork-modperl/conf/devel-site.apache-config.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4114 - (view) (download)
Original Path: trunk/webwork-modperl/conf/devel-site.apache-config.dist

1 : sh002i 2492 ################################################################################
2 :     # WeBWorK Online Homework Delivery System
3 : sh002i 3973 # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/
4 : sh002i 4114 # $CVSHeader: webwork2/conf/devel-site.apache-config.dist,v 1.4 2006/05/16 21:11:52 sh002i Exp $
5 : sh002i 2492 #
6 :     # This program is free software; you can redistribute it and/or modify it under
7 :     # the terms of either: (a) the GNU General Public License as published by the
8 :     # Free Software Foundation; either version 2, or (at your option) any later
9 :     # version, or (b) the "Artistic License" which comes with this package.
10 :     #
11 :     # This program is distributed in the hope that it will be useful, but WITHOUT
12 :     # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 :     # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
14 :     # Artistic License for more details.
15 :     ################################################################################
16 :    
17 :     # This file contains the site-specific (but user-independent) directives used
18 :     # in the configuration of Apache servers for WeBWorK development. See the file
19 :     # devel.apache-config for more information.
20 :     #
21 :     # Configure this file to match your main Apache configuration file, usually
22 :     # apache.conf or httpd.conf. This file ships configured use on the host
23 :     # devel.webwork.rochester.edu.
24 :    
25 :     ################################################################################
26 :     # Section 1: Global Environment
27 :     ################################################################################
28 :    
29 :     ServerType standalone
30 : sh002i 4114 #ServerRoot /usr/local
31 : sh002i 2492 ResourceConfig /dev/null
32 :     AccessConfig /dev/null
33 :     Timeout 300
34 :     KeepAlive On
35 :     MaxKeepAliveRequests 100
36 :     KeepAliveTimeout 15
37 :    
38 :     # Dynamic Shared Object (DSO) Support
39 :     # Note: The order in which modules are loaded is important. Don't change
40 :     # the order below without expert advice.
41 : sh002i 4114 LoadModule mmap_static_module /usr/local/libexec/apache/mod_mmap_static.so
42 :     LoadModule vhost_alias_module /usr/local/libexec/apache/mod_vhost_alias.so
43 :     LoadModule env_module /usr/local/libexec/apache/mod_env.so
44 :     LoadModule define_module /usr/local/libexec/apache/mod_define.so
45 :     LoadModule config_log_module /usr/local/libexec/apache/mod_log_config.so
46 :     LoadModule mime_magic_module /usr/local/libexec/apache/mod_mime_magic.so
47 :     LoadModule mime_module /usr/local/libexec/apache/mod_mime.so
48 :     LoadModule negotiation_module /usr/local/libexec/apache/mod_negotiation.so
49 :     LoadModule status_module /usr/local/libexec/apache/mod_status.so
50 :     LoadModule info_module /usr/local/libexec/apache/mod_info.so
51 :     LoadModule includes_module /usr/local/libexec/apache/mod_include.so
52 :     LoadModule autoindex_module /usr/local/libexec/apache/mod_autoindex.so
53 :     LoadModule dir_module /usr/local/libexec/apache/mod_dir.so
54 :     LoadModule cgi_module /usr/local/libexec/apache/mod_cgi.so
55 :     LoadModule asis_module /usr/local/libexec/apache/mod_asis.so
56 :     LoadModule imap_module /usr/local/libexec/apache/mod_imap.so
57 :     LoadModule action_module /usr/local/libexec/apache/mod_actions.so
58 :     LoadModule speling_module /usr/local/libexec/apache/mod_speling.so
59 :     LoadModule userdir_module /usr/local/libexec/apache/mod_userdir.so
60 :     LoadModule alias_module /usr/local/libexec/apache/mod_alias.so
61 :     LoadModule rewrite_module /usr/local/libexec/apache/mod_rewrite.so
62 :     LoadModule access_module /usr/local/libexec/apache/mod_access.so
63 :     LoadModule auth_module /usr/local/libexec/apache/mod_auth.so
64 :     LoadModule anon_auth_module /usr/local/libexec/apache/mod_auth_anon.so
65 :     LoadModule db_auth_module /usr/local/libexec/apache/mod_auth_db.so
66 :     LoadModule digest_module /usr/local/libexec/apache/mod_digest.so
67 :     LoadModule proxy_module /usr/local/libexec/apache/libproxy.so
68 :     LoadModule cern_meta_module /usr/local/libexec/apache/mod_cern_meta.so
69 :     LoadModule expires_module /usr/local/libexec/apache/mod_expires.so
70 :     LoadModule headers_module /usr/local/libexec/apache/mod_headers.so
71 :     LoadModule usertrack_module /usr/local/libexec/apache/mod_usertrack.so
72 :     LoadModule log_forensic_module /usr/local/libexec/apache/mod_log_forensic.so
73 :     LoadModule unique_id_module /usr/local/libexec/apache/mod_unique_id.so
74 :     LoadModule setenvif_module /usr/local/libexec/apache/mod_setenvif.so
75 :     <IfDefine SSL>
76 :     LoadModule ssl_module /usr/local/libexec/apache/libssl.so
77 :     </IfDefine>
78 :     LoadModule perl_module /usr/local/libexec/apache/libperl.so
79 :     LoadModule php4_module /usr/local/libexec/apache/libphp4.so
80 : sh002i 2492
81 : sh002i 4114 # Reconstruction of the complete module list from all available modules
82 :     # (static and shared ones) to achieve correct module execution order.
83 :     # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
84 : sh002i 2492 ClearModuleList
85 :     AddModule mod_mmap_static.c
86 :     AddModule mod_vhost_alias.c
87 :     AddModule mod_env.c
88 : sh002i 4114 AddModule mod_define.c
89 : sh002i 2492 AddModule mod_log_config.c
90 :     AddModule mod_mime_magic.c
91 :     AddModule mod_mime.c
92 :     AddModule mod_negotiation.c
93 :     AddModule mod_status.c
94 :     AddModule mod_info.c
95 :     AddModule mod_include.c
96 :     AddModule mod_autoindex.c
97 :     AddModule mod_dir.c
98 :     AddModule mod_cgi.c
99 :     AddModule mod_asis.c
100 :     AddModule mod_imap.c
101 :     AddModule mod_actions.c
102 :     AddModule mod_speling.c
103 :     AddModule mod_userdir.c
104 :     AddModule mod_alias.c
105 :     AddModule mod_rewrite.c
106 :     AddModule mod_access.c
107 :     AddModule mod_auth.c
108 :     AddModule mod_auth_anon.c
109 :     AddModule mod_auth_db.c
110 :     AddModule mod_digest.c
111 :     AddModule mod_proxy.c
112 :     AddModule mod_cern_meta.c
113 :     AddModule mod_expires.c
114 :     AddModule mod_headers.c
115 :     AddModule mod_usertrack.c
116 : sh002i 4114 AddModule mod_log_forensic.c
117 : sh002i 2492 AddModule mod_unique_id.c
118 :     AddModule mod_so.c
119 :     AddModule mod_setenvif.c
120 : sh002i 4114 <IfDefine SSL>
121 :     AddModule mod_ssl.c
122 :     </IfDefine>
123 : sh002i 2492 AddModule mod_perl.c
124 : sh002i 4076 AddModule mod_php4.c
125 : sh002i 2492
126 :     ExtendedStatus On
127 :    
128 :     ################################################################################
129 :     # Section 2: 'Main' server configuration
130 :     ################################################################################
131 :    
132 :     ServerName devel.webwork.rochester.edu
133 :     UseCanonicalName Off
134 :    
135 :     <Directory />
136 :     Options FollowSymLinks
137 :     AllowOverride None
138 :     </Directory>
139 :    
140 :     # DirectoryIndex: Name of the file or files to use as a pre-written HTML
141 :     # directory index. Separate multiple entries with spaces.
142 :     <IfModule mod_dir.c>
143 :     <IfModule mod_php3.c>
144 :     <IfModule mod_php4.c>
145 :     DirectoryIndex index.php index.php3 index.html
146 :     </IfModule>
147 :     <IfModule !mod_php4.c>
148 :     DirectoryIndex index.php3 index.html
149 :     </IfModule>
150 :     </IfModule>
151 :     <IfModule !mod_php3.c>
152 :     <IfModule mod_php4.c>
153 :     DirectoryIndex index.php index.html
154 :     </IfModule>
155 :     <IfModule !mod_php4.c>
156 :     DirectoryIndex index.html
157 :     </IfModule>
158 :     </IfModule>
159 :     </IfModule>
160 :    
161 :     AccessFileName .htaccess
162 :    
163 :     # Prevent downloads of .htaccess and .htpasswd files
164 :     <Files ~ "^\.ht">
165 :     Order allow,deny
166 :     Deny from all
167 :     Satisfy All
168 :     </Files>
169 :    
170 :     <IfModule mod_mime.c>
171 :     TypesConfig /usr/local/etc/apache/mime.types
172 :     </IfModule>
173 :    
174 :     # Another good DefaultType is application/octet-stream
175 :     DefaultType text/plain
176 :    
177 :     <IfModule mod_mime_magic.c>
178 :     MIMEMagicFile /usr/local/etc/apache/magic
179 :     </IfModule>
180 :    
181 :     # Logging stuff
182 :     HostnameLookups On
183 :    
184 :     # Possible values include: debug, info, notice, warn, error, crit,
185 :     # alert, emerg.
186 :     LogLevel warn
187 :    
188 :     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
189 :     LogFormat "%h %l %u %t \"%r\" %>s %b" common
190 :     LogFormat "%{Referer}i -> %U" referer
191 :     LogFormat "%{User-agent}i" agent
192 :    
193 :     # Set to "EMail" to also include a mailto: link to the ServerAdmin.
194 :     # Set to one of: On | Off | EMail
195 :     ServerSignature On
196 :    
197 :     <IfModule mod_alias.c>
198 :     # Note that if you include a trailing / on fakename then the server will
199 :     # require it to be present in the URL. So "/icons" isn't aliased in this
200 :     # example, only "/icons/". If the fakename is slash-terminated, then the
201 :     # realname must also be slash terminated, and if the fakename omits the
202 :     # trailing slash, the realname must also omit it.
203 :     Alias /icons/ "/usr/local/www/icons/"
204 :    
205 :     <Directory "/usr/local/www/icons">
206 :     Options Indexes MultiViews
207 :     AllowOverride None
208 :     Order allow,deny
209 :     Allow from all
210 :     </Directory>
211 :    
212 : sh002i 4114 # # The same rules about trailing "/" apply to ScriptAlias directives as to
213 :     # # Alias.
214 :     # ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
215 :     #
216 :     # <Directory "/usr/local/www/cgi-bin">
217 :     # AllowOverride None
218 :     # Options None
219 :     # Order allow,deny
220 :     # Allow from all
221 :     # </Directory>
222 : sh002i 2492
223 :     </IfModule>
224 :    
225 :     # Directives controlling the display of server-generated directory listings.
226 :     <IfModule mod_autoindex.c>
227 :    
228 :     # FancyIndexing is whether you want fancy directory indexing or standard
229 :     IndexOptions FancyIndexing
230 :    
231 :     # AddIcon* directives tell the server which icon to show for different
232 :     # files or filename extensions. These are only displayed for
233 :     # FancyIndexed directories.
234 :     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
235 :    
236 :     AddIconByType (TXT,/icons/text.gif) text/*
237 :     AddIconByType (IMG,/icons/image2.gif) image/*
238 :     AddIconByType (SND,/icons/sound2.gif) audio/*
239 :     AddIconByType (VID,/icons/movie.gif) video/*
240 :    
241 :     AddIcon /icons/binary.gif .bin .exe
242 :     AddIcon /icons/binhex.gif .hqx
243 :     AddIcon /icons/tar.gif .tar
244 :     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
245 :     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
246 :     AddIcon /icons/a.gif .ps .ai .eps
247 :     AddIcon /icons/layout.gif .html .shtml .htm .pdf
248 :     AddIcon /icons/text.gif .txt
249 :     AddIcon /icons/c.gif .c
250 :     AddIcon /icons/p.gif .pl .py
251 :     AddIcon /icons/f.gif .for
252 :     AddIcon /icons/dvi.gif .dvi
253 :     AddIcon /icons/uuencoded.gif .uu
254 :     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
255 :     AddIcon /icons/tex.gif .tex
256 :     AddIcon /icons/bomb.gif core
257 :    
258 :     AddIcon /icons/back.gif ..
259 :     AddIcon /icons/hand.right.gif README
260 :     AddIcon /icons/folder.gif ^^DIRECTORY^^
261 :     AddIcon /icons/blank.gif ^^BLANKICON^^
262 :    
263 :     DefaultIcon /icons/unknown.gif
264 :    
265 :     #AddDescription "GZIP compressed document" .gz
266 :     #AddDescription "tar archive" .tar
267 :     #AddDescription "GZIP compressed tar archive" .tgz
268 :    
269 :     # If MultiViews are amongst the Options in effect, the server will
270 :     # first look for name.html and include it if found. If name.html
271 :     # doesn't exist, the server will then look for name.txt and include
272 :     # it as plaintext if found.
273 :     ReadmeName README
274 :     HeaderName HEADER
275 :     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
276 :     </IfModule>
277 :    
278 :     # Document types.
279 :     <IfModule mod_mime.c>
280 :    
281 :     #
282 :     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
283 :     # information on the fly. Note: Not all browsers support this.
284 :     # Despite the name similarity, the following Add* directives have nothing
285 :     # to do with the FancyIndexing customization directives above.
286 :     #
287 :     AddEncoding x-compress Z
288 :     AddEncoding x-gzip gz tgz
289 :    
290 :     AddLanguage da .dk
291 :     AddLanguage nl .nl
292 :     AddLanguage en .en
293 :     AddLanguage et .ee
294 :     AddLanguage fr .fr
295 :     AddLanguage de .de
296 :     AddLanguage el .el
297 :     AddLanguage he .he
298 :     AddCharset ISO-8859-8 .iso8859-8
299 :     AddLanguage it .it
300 :     AddLanguage ja .ja
301 :     AddCharset ISO-2022-JP .jis
302 :     AddLanguage kr .kr
303 :     AddCharset ISO-2022-KR .iso-kr
304 :     AddLanguage nn .nn
305 :     AddLanguage no .no
306 :     AddLanguage pl .po
307 :     AddCharset ISO-8859-2 .iso-pl
308 :     AddLanguage pt .pt
309 :     AddLanguage pt-br .pt-br
310 :     AddLanguage ltz .lu
311 :     AddLanguage ca .ca
312 :     AddLanguage es .es
313 :     AddLanguage sv .sv
314 :     AddLanguage cz .cz
315 :     AddLanguage ru .ru
316 :     AddLanguage zh-tw .tw
317 :     AddLanguage tw .tw
318 :     AddCharset Big5 .Big5 .big5
319 :     AddCharset WINDOWS-1251 .cp-1251
320 :     AddCharset CP866 .cp866
321 :     AddCharset ISO-8859-5 .iso-ru
322 :     AddCharset KOI8-R .koi8-r
323 :     AddCharset UCS-2 .ucs2
324 :     AddCharset UCS-4 .ucs4
325 :     AddCharset UTF-8 .utf8
326 :    
327 :     <IfModule mod_negotiation.c>
328 :     LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
329 :     </IfModule>
330 :    
331 :     <IfModule mod_php3.c>
332 :     AddType application/x-httpd-php3 .php3
333 :     AddType application/x-httpd-php3-source .php3s
334 :     </IfModule>
335 :     <IfModule mod_php4.c>
336 :     AddType application/x-httpd-php .php
337 :     AddType application/x-httpd-php-source .phps
338 :     </IfModule>
339 :    
340 :     AddType application/x-tar .tgz
341 :     AddType image/x-icon .ico
342 :    
343 :     #AddHandler cgi-script .cgi
344 :     #AddType text/html .shtml
345 :     #AddHandler server-parsed .shtml
346 :     #AddHandler send-as-is asis
347 :     #AddHandler imap-file map
348 :     #AddHandler type-map var
349 :    
350 :     </IfModule>
351 :    
352 :     #Action media/type /cgi-script/location
353 :     #Action handler-name /cgi-script/location
354 :    
355 :     # MetaDir: specifies the name of the directory in which Apache can find
356 :     # meta information files. These files contain additional HTTP headers
357 :     # to include when sending the document
358 :     #MetaDir .web
359 :    
360 :     # MetaSuffix: specifies the file name suffix for the file containing the
361 :     # meta information.
362 :     #MetaSuffix .meta
363 :    
364 :     #ErrorDocument 500 "The server made a boo boo.
365 :     #ErrorDocument 404 /missing.html
366 :     #ErrorDocument 404 /cgi-bin/missing_handler.pl
367 :     #ErrorDocument 402 http://some.other-server.com/subscription_info.html
368 :    
369 :     <IfModule mod_setenvif.c>
370 :     BrowserMatch "Mozilla/2" nokeepalive
371 :     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
372 :     BrowserMatch "RealPlayer 4\.0" force-response-1.0
373 :     BrowserMatch "Java/1\.0" force-response-1.0
374 :     BrowserMatch "JDK/1\.0" force-response-1.0
375 :     </IfModule>
376 :    
377 :     <Location /server-status>
378 :     SetHandler server-status
379 : sh002i 2496 Order allow,deny
380 :     Allow from all
381 : sh002i 2492 </Location>
382 :    
383 :     <Location /server-info>
384 :     SetHandler server-info
385 : sh002i 2496 Order allow,deny
386 :     Allow from all
387 : sh002i 2492 </Location>
388 : sh002i 4114
389 :     <IfDefine SSL>
390 :     AddType application/x-x509-ca-cert .crt
391 :     AddType application/x-pkcs7-crl .crl
392 :     </IfDefine>
393 :    
394 :     <IfModule mod_ssl.c>
395 :     SSLPassPhraseDialog builtin
396 :    
397 :     SSLSessionCache dbm:run/ssl_scache
398 :     SSLSessionCacheTimeout 300
399 :    
400 :     SSLMutex file:run/ssl_mutex
401 :    
402 :     SSLRandomSeed startup builtin
403 :     SSLRandomSeed connect builtin
404 :    
405 :     #sam# log -> logs
406 :     SSLLog logs/ssl_engine_log
407 :     SSLLogLevel info
408 :     </IfModule>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9