File:  [LON-CAPA] / loncom / Attic / access.conf
Revision 1.2: download - view: text, annotated - select for diffs
Sat Jul 1 17:57:01 2000 UTC (23 years, 10 months ago) by www
Branches: MAIN
CVS tags: HEAD
Fixed bug in loncacc.pm, use Apache File
Put in locationmatches for RAT server side in access.conf

    1: ## modified for LearningOnline Network
    2: ## Gerd Kortemeyer
    3: ##
    4: ## 7/8,7/10,7/14,11/22,01/06,01/20,01/21,5/29,5/31,7/1
    5: ##
    6: ## access.conf -- Apache HTTP server configuration file
    7: ##
    8: 
    9: # access.conf: Global access configuration
   10: # Online docs at http://www.apache.org/
   11: 
   12: # This file defines server settings which affect which types of services
   13: # are allowed, and in what circumstances. 
   14: 
   15: # Each directory to which Apache has access, can be configured with respect
   16: # to which services and features are allowed and/or disabled in that
   17: # directory (and its subdirectories). 
   18: 
   19: # Originally by Rob McCool
   20: 
   21: # First, we configure the "default" to be a very restrictive set of 
   22: # permissions.  
   23: 
   24: <Directory />
   25: Options None
   26: AllowOverride None
   27: </Directory>
   28: 
   29: # Note that from this point forward you must specifically allow
   30: # particular features to be enabled - so if something's not working as
   31: # you might expect, make sure that you have specifically enabled it
   32: # below.
   33: 
   34: # This should be changed to whatever you set DocumentRoot to.
   35: 
   36: <Directory /home/httpd/html>
   37: 
   38: # This may also be "None", "All", or any combination of "Indexes",
   39: # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
   40: 
   41: # Note that "MultiViews" must be named *explicitly* --- "Options All"
   42: # doesn't give it to you.
   43: 
   44: Options Includes FollowSymLinks
   45: 
   46: # This controls which options the .htaccess files in directories can
   47: # override. Can also be "All", or any combination of "Options", "FileInfo", 
   48: # "AuthConfig", and "Limit"
   49: 
   50: AllowOverride None
   51: 
   52: # Controls who can get stuff from this server.
   53: 
   54: order allow,deny
   55: allow from all
   56: 
   57: </Directory>
   58: 
   59: # /home/httpd/cgi-bin should be changed to whatever your ScriptAliased
   60: # CGI directory exists, if you have that configured.
   61: 
   62: <Directory /home/httpd/cgi-bin>
   63: AllowOverride None
   64: Options ExecCGI
   65: </Directory>
   66: 
   67: # Allow server status reports, with the URL of http://servername/server-status
   68: # Change the ".your_domain.com" to match your domain to enable.
   69: 
   70: <Location /server-status>
   71: SetHandler server-status
   72: AuthName "HTTPD Server Status"
   73: AuthType Basic
   74: AuthUserFile /home/httpd/lonTabs/htpasswd
   75: require user lonadm
   76: </Location>
   77: 
   78: <Location /lon-status>
   79: AuthName "LON Server Status"
   80: AuthType Basic
   81: AuthUserFile /home/httpd/lonTabs/htpasswd
   82: require user lonadm
   83: </Location>
   84: 
   85: # Allow access to local system documentation from localhost
   86: Alias /doc /usr/doc
   87: <Directory /usr/doc>
   88: order deny,allow
   89: deny from all
   90: allow from localhost
   91: Options Indexes FollowSymLinks
   92: </Directory>
   93: 
   94: # There have been reports of people trying to abuse an old bug from pre-1.1
   95: # days.  This bug involved a CGI script distributed as a part of Apache.
   96: # By uncommenting these lines you can redirect these attacks to a logging 
   97: # script on phf.apache.org.  Or, you can record them yourself, using the script
   98: # support/phf_abuse_log.cgi.
   99: 
  100: #<Location /cgi-bin/phf*>
  101: #deny from all
  102: #ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  103: #</Location>
  104: 
  105: # You may place any other directories or locations you wish to have
  106: # access information for after this one.
  107: 
  108: 
  109: # ------------------------------------------------------------ Machine Specific
  110: #
  111: # The variable values are also read and shared by lond
  112: 
  113: # LON-internal HostID of this machine
  114: 
  115: PerlSetVar       lonHostID    msul1
  116:  
  117: # Role of this machine: library, access
  118: 
  119: PerlSetVar       lonRole      library
  120: 
  121: # Server Administration
  122: 
  123: PerlSetVar       lonAdmEMail  korte@lite.msu.edu
  124: 
  125: # Default domain
  126: 
  127: PerlSetVar       lonDefDomain msu
  128: 
  129: # Load Limit ( 100% loadavg )
  130: 
  131: PerlSetVar       lonLoadLim   2.00
  132: 
  133: # Expiration for local copies in seconds
  134: 
  135: PerlSetVar       lonExpire    86400
  136: 
  137: # ----------------------------------------------------------- Internal Settings
  138: 
  139: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  140: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  141: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  142: PerlSetVar       lonIconsURL  /adm/lonIcons
  143: PerlSetVar       londPort     5663
  144: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  145: PerlSetVar       lonDaemons   /home/httpd/perl
  146: PerlSetVar       lonSockDir   /home/httpd/sockets
  147: PerlSetVar       lonDocRoot   /home/httpd/html
  148: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  149: PerlSetVar       lonBrowsDet  netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:5.1&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:5&amaya:amaya:mozilla:V(\d+\.\d+)\s:1
  150: 
  151: # ------------------------------------------------------------ Perl Information
  152: 
  153: PerlRequire      conf/startup.pl
  154: PerlFreshRestart On
  155: 
  156: # ----------------------------------------------------------------- Directories
  157: 
  158: <LocationMatch "^/res.*">
  159: PerlAccessHandler       Apache::lonacc
  160: PerlHeaderParserHandler Apache::lonrep
  161: ErrorDocument     403 /adm/login
  162: ErrorDocument     406 /adm/roles
  163: </LocationMatch>
  164: 
  165: <LocationMatch "^/raw.*">
  166: PerlAccessHandler Apache::lonracc
  167: </LocationMatch>
  168: 
  169: <LocationMatch "^/\~.*">
  170: PerlAccessHandler Apache::loncacc
  171: ErrorDocument     403 /adm/login
  172: ErrorDocument     404 /adm/notfound.html
  173: ErrorDocument     406 /adm/unauthorized.html
  174: </LocationMatch>
  175: 
  176: <LocationMatch "^/r.*/$">
  177: SetHandler perl-script
  178: PerlHandler Apache::lonindexer
  179: </LocationMatch>
  180: 
  181: <LocationMatch "^/\~.*\.course$">
  182: SetHandler perl-script
  183: PerlHandler Apache::lonratedt
  184: </LocationMatch>
  185: 
  186: <LocationMatch "^/\~.*\.sequence$">
  187: SetHandler perl-script
  188: PerlHandler Apache::lonratedt
  189: </LocationMatch>
  190: 
  191: <LocationMatch "^/\~.*\.page$">
  192: SetHandler perl-script
  193: PerlHandler Apache::lonratedt
  194: </LocationMatch>
  195: 
  196: <LocationMatch "^/\~.*\/ratserver$">
  197: SetHandler perl-script
  198: PerlHandler Apache::lonratsrv
  199: </LocationMatch>
  200: 
  201: <LocationMatch "^/\.tex$">
  202: SetHandler perl-script
  203: PerlHandler Apache::lontex
  204: </LocationMatch>
  205: 
  206: <Location /adm/roles>
  207: PerlAccessHandler       Apache::lonacc
  208: SetHandler perl-script
  209: PerlHandler Apache::lonroles
  210: ErrorDocument     403 /adm/login
  211: </Location>
  212: 
  213: <Location /adm/login>
  214: SetHandler perl-script
  215: PerlHandler Apache::lonlogin
  216: </Location>
  217: 
  218: <Location /adm/logout>
  219: PerlAccessHandler       Apache::lonacc
  220: SetHandler perl-script
  221: PerlHandler Apache::lonlogout
  222: </Location>
  223: 
  224: <Location /adm/authenticate>
  225: SetHandler perl-script
  226: PerlHandler Apache::lonauth
  227: </Location>
  228: 
  229: 
  230: 
  231: 
  232: 
  233: 
  234: 

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