File:  [LON-CAPA] / loncom / Attic / srm.conf
Revision 1.29: download - view: text, annotated - select for diffs
Fri Jan 11 16:45:58 2002 UTC (22 years, 3 months ago) by harris41
Branches: MAIN
CVS tags: version_0_4, stable_2002_spring, stable_2002_july, stable_2002_april, STABLE, HEAD
moved name specific services to loncapa.conf (they are no longer in srm.conf)

    1: ##
    2: ## srm.conf -- Apache HTTP server configuration file
    3: ##
    4: #
    5: # configured for LON-CAPA
    6: #
    7: # $Id: srm.conf,v 1.29 2002/01/11 16:45:58 harris41 Exp $
    8: 
    9: # With this document, you define the name space that users see of your http
   10: # server.  This file also defines server settings which affect how requests are
   11: # serviced, and how results should be formatted. 
   12: 
   13: # See the tutorials at http://www.apache.org/ for
   14: # more information.
   15: 
   16: # Originally by Rob McCool; Adapted for Apache
   17: 
   18: 
   19: # DocumentRoot: The directory out of which you will serve your
   20: # documents. By default, all requests are taken from this directory, but
   21: # symbolic links and aliases may be used to point to other locations.
   22: 
   23: DocumentRoot /home/httpd/html
   24: 
   25: # UserDir: The name of the directory which is appended onto a user's home
   26: # directory if a ~user request is recieved.
   27: 
   28: UserDir public_html
   29: 
   30: # DirectoryIndex: Name of the file or files to use as a pre-written HTML
   31: # directory index.  Separate multiple entries with spaces.
   32: 
   33: DirectoryIndex index.html index.shtml index.cgi
   34: 
   35: # FancyIndexing is whether you want fancy directory indexing or standard
   36: 
   37: FancyIndexing on
   38: 
   39: # AddIcon tells the server which icon to show for different files or filename
   40: # extensions
   41: 
   42: AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
   43: 
   44: AddIconByType (TXT,/icons/text.gif) text/*
   45: AddIconByType (IMG,/icons/image2.gif) image/*
   46: AddIconByType (SND,/icons/sound2.gif) audio/*
   47: AddIconByType (VID,/icons/movie.gif) video/*
   48: 
   49: AddIcon /icons/binary.gif .bin .exe
   50: AddIcon /icons/binhex.gif .hqx
   51: AddIcon /icons/tar.gif .tar
   52: AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
   53: AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
   54: AddIcon /icons/a.gif .ps .ai .eps
   55: AddIcon /icons/layout.gif .html .shtml .htm .pdf
   56: AddIcon /icons/text.gif .txt
   57: AddIcon /icons/c.gif .c
   58: AddIcon /icons/p.gif .pl .py
   59: AddIcon /icons/f.gif .for
   60: AddIcon /icons/dvi.gif .dvi
   61: AddIcon /icons/uuencoded.gif .uu
   62: AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
   63: AddIcon /icons/tex.gif .tex
   64: AddIcon /icons/bomb.gif core
   65: 
   66: AddIcon /icons/back.gif ..
   67: AddIcon /icons/hand.right.gif README
   68: AddIcon /icons/folder.gif ^^DIRECTORY^^
   69: AddIcon /icons/blank.gif ^^BLANKICON^^
   70: 
   71: # DefaultIcon is which icon to show for files which do not have an icon
   72: # explicitly set.
   73: 
   74: DefaultIcon /icons/unknown.gif
   75: 
   76: # AddDescription allows you to place a short description after a file in
   77: # server-generated indexes.
   78: # Format: AddDescription "description" filename
   79: 
   80: # ReadmeName is the name of the README file the server will look for by
   81: # default. Format: ReadmeName name
   82: #
   83: # The server will first look for name.html, include it if found, and it will
   84: # then look for name and include it as plaintext if found.
   85: #
   86: # HeaderName is the name of a file which should be prepended to
   87: # directory indexes. 
   88: 
   89: ReadmeName README
   90: HeaderName HEADER
   91: 
   92: # IndexIgnore is a set of filenames which directory indexing should ignore
   93: # Format: IndexIgnore name1 name2...
   94: 
   95: IndexIgnore .??* *~ *# HEADER* README* RCS
   96: 
   97: # AccessFileName: The name of the file to look for in each directory
   98: # for access control information.
   99: 
  100: AccessFileName .htaccess
  101: 
  102: # TypesConfig describes where the mime.types file (or equivalent) is
  103: # to be found.
  104: 
  105: TypesConfig /etc/mime.types
  106: 
  107: # DefaultType is the default MIME type for documents which the server
  108: # cannot find the type of from filename extensions.
  109: 
  110: DefaultType text/plain
  111: 
  112: # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  113: # information on the fly. Note: Not all browsers support this.
  114: 
  115: AddEncoding x-compress Z
  116: AddEncoding x-gzip gz
  117: 
  118: # AddLanguage allows you to specify the language of a document. You can
  119: # then use content negotiation to give a browser a file in a language
  120: # it can understand.  Note that the suffix does not have to be the same
  121: # as the language keyword --- those with documents in Polish (whose
  122: # net-standard language code is pl) may wish to use "AddLanguage pl .po" 
  123: # to avoid the ambiguity with the common suffix for perl scripts.
  124: 
  125: AddLanguage en .en
  126: AddLanguage fr .fr
  127: AddLanguage de .de
  128: AddLanguage da .da
  129: AddLanguage el .el
  130: AddLanguage it .it
  131: 
  132: # LanguagePriority allows you to give precedence to some languages
  133: # in case of a tie during content negotiation.
  134: # Just list the languages in decreasing order of preference.
  135: 
  136: LanguagePriority en fr de
  137: 
  138: # Redirect allows you to tell clients about documents which used to exist in
  139: # your server's namespace, but do not anymore. This allows you to tell the
  140: # clients where to look for the relocated document.
  141: # Format: Redirect fakename url
  142: 
  143: 
  144: # Aliases: Add here as many aliases as you need (with no limit). The format is 
  145: # Alias fakename realname
  146: 
  147: # Note that if you include a trailing / on fakename then the server will
  148: # require it to be present in the URL.  So "/icons" isn't aliased in this
  149: # example.
  150: 
  151: Alias /icons/ /home/httpd/icons/
  152: 
  153: # needed for lonprintout.pm
  154: Alias /prtspool/ /home/httpd/prtspool/
  155: 
  156: # ScriptAlias: This controls which directories contain server scripts.
  157: # Format: ScriptAlias fakename realname
  158: 
  159: ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
  160: 
  161: # If you want to use server side includes, or CGI outside
  162: # ScriptAliased directories, uncomment the following lines.
  163: 
  164: # AddType allows you to tweak mime.types without actually editing it, or to
  165: # make certain files to be certain types.
  166: # Format: AddType type/subtype ext1
  167: 
  168: # For example, the PHP3 module (not part of the Apache distribution)
  169: # will typically use:
  170: #AddType application/x-httpd-php3 .php3
  171: #AddType application/x-httpd-php3-source .phps
  172: # The following is for PHP/FI (PHP2):
  173: #AddType application/x-httpd-php .phtml
  174: 
  175: # AddHandler allows you to map certain file extensions to "handlers",
  176: # actions unrelated to filetype. These can be either built into the server
  177: # or added with the Action command (see below)
  178: # Format: AddHandler action-name ext1
  179: 
  180: # To use CGI scripts:
  181: #AddHandler cgi-script .cgi
  182: 
  183: # To use server-parsed HTML files
  184: AddType text/html .shtml
  185: AddHandler server-parsed .shtml
  186: 
  187: # Uncomment the following line to enable Apache's send-asis HTTP file
  188: # feature
  189: #AddHandler send-as-is asis
  190: 
  191: # If you wish to use server-parsed imagemap files, use
  192: AddHandler imap-file map
  193: 
  194: # To enable type maps, you might want to use
  195: #AddHandler type-map var
  196: 
  197: # To enable the perl module (if you have it installed), uncomment
  198: # the following section 
  199: #
  200: #Alias /perl/ /home/httpd/perl/
  201: #<Location /perl>
  202: #SetHandler perl-script
  203: #PerlHandler Apache::Registry
  204: #Options +ExecCGI
  205: #</Location>
  206: 
  207: # Action lets you define media types that will execute a script whenever
  208: # a matching file is called. This eliminates the need for repeated URL
  209: # pathnames for oft-used CGI file processors.
  210: # Format: Action media/type /cgi-script/location
  211: # Format: Action handler-name /cgi-script/location
  212: 
  213: # MetaDir: specifies the name of the directory in which Apache can find
  214: # meta information files. These files contain additional HTTP headers
  215: # to include when sending the document
  216: 
  217: #MetaDir .web
  218: 
  219: # MetaSuffix: specifies the file name suffix for the file containing the
  220: # meta information.
  221: 
  222: #MetaSuffix .meta
  223: 
  224: # Customizable error response (Apache style)
  225: #  these come in three flavors
  226: #
  227: #    1) plain text
  228: #ErrorDocument 500 "The server made a boo boo.
  229: #  n.b.  the (") marks it as text, it does not get output
  230: #
  231: #    2) local redirects
  232: #ErrorDocument 404 /missing.html
  233: #  to redirect to local url /missing.html
  234: #ErrorDocument 404 /cgi-bin/missing_handler.pl
  235: #  n.b. can redirect to a script or a document using server-side-includes.
  236: #
  237: #    3) external redirects
  238: #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  239: #
  240: 
  241: # mod_mime_magic allows the server to use various hints from the file itself
  242: # to determine its type.
  243: #MimeMagicFile /etc/httpd/conf/magic
  244: 
  245: # The following directives disable keepalives and HTTP header flushes.
  246: # The first directive disables it for Netscape 2.x and browsers which
  247: # spoof it. There are known problems with these.
  248: # The second directive is for Microsoft Internet Explorer 4.0b2
  249: # which has a broken HTTP/1.1 implementation and does not properly
  250: # support keepalive when it is used on 301 or 302 (redirect) responses.
  251: 
  252: BrowserMatch "Mozilla/2" nokeepalive
  253: BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  254: 
  255: # The following directive disables HTTP/1.1 responses to browsers which
  256: # are in violation of the HTTP/1.0 spec by not being able to grok a
  257: # basic 1.1 response.
  258: 
  259: BrowserMatch "RealPlayer 4\.0" force-response-1.0
  260: BrowserMatch "Java/1\.0" force-response-1.0
  261: BrowserMatch "JDK/1\.0" force-response-1.0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>