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

View of /trunk/webwork2/conf/httpd-wwmp-header.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1961 - (download) (annotate)
Sat Apr 10 17:22:01 2004 UTC (9 years, 1 month ago) by sh002i
File size: 12583 byte(s)
changed ServerName to devel.webwork...

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9