[system] / trunk / webwork-modperl / conf / devel-site.apache-config.dist Repository:
ViewVC logotype

View of /trunk/webwork-modperl/conf/devel-site.apache-config.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2496 - (download) (annotate)
Mon Jul 12 04:15:51 2004 UTC (8 years, 10 months ago) by sh002i
File size: 12806 byte(s)
"Allow from all" for server-info/server-status in site config. People
can tighten this up by setting up authentication.

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9