[system] / trunk / webwork-modperl / conf / httpd-wwmp-header.conf.dist Repository:
ViewVC logotype

Annotation of /trunk/webwork-modperl/conf/httpd-wwmp-header.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 656 - (view) (download)

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9