File:  [LON-CAPA] / loncom / Attic / access.conf
Revision 1.17: download - view: text, annotated - select for diffs
Mon Nov 20 17:19:44 2000 UTC (23 years, 5 months ago) by www
Branches: MAIN
CVS tags: HEAD
Handler for 'non acceptable' in parameter setting

    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,7/10,8/22,8/29
    5: ##
    6: ## Scott Harrison
    7: ##
    8: ## 9/21,9/23
    9: ##
   10: ## Gerd Kortemeyer
   11: ##
   12: ## 10/3,10/5,10/12,10/16,10/20,11/2,11/6,11/10,11/20
   13: ##
   14: ## access.conf -- Apache HTTP server configuration file
   15: ##
   16: 
   17: # access.conf: Global access configuration
   18: # Online docs at http://www.apache.org/
   19: 
   20: # This file defines server settings which affect which types of services
   21: # are allowed, and in what circumstances. 
   22: 
   23: # Each directory to which Apache has access, can be configured with respect
   24: # to which services and features are allowed and/or disabled in that
   25: # directory (and its subdirectories). 
   26: 
   27: # Originally by Rob McCool
   28: 
   29: # First, we configure the "default" to be a very restrictive set of 
   30: # permissions.  
   31: 
   32: <Directory />
   33: Options None
   34: AllowOverride None
   35: </Directory>
   36: 
   37: # Note that from this point forward you must specifically allow
   38: # particular features to be enabled - so if something's not working as
   39: # you might expect, make sure that you have specifically enabled it
   40: # below.
   41: 
   42: # This should be changed to whatever you set DocumentRoot to.
   43: 
   44: <Directory /home/httpd/html>
   45: 
   46: # This may also be "None", "All", or any combination of "Indexes",
   47: # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
   48: 
   49: # Note that "MultiViews" must be named *explicitly* --- "Options All"
   50: # doesn't give it to you.
   51: 
   52: Options Includes FollowSymLinks
   53: 
   54: # This controls which options the .htaccess files in directories can
   55: # override. Can also be "All", or any combination of "Options", "FileInfo", 
   56: # "AuthConfig", and "Limit"
   57: 
   58: AllowOverride None
   59: 
   60: # Controls who can get stuff from this server.
   61: 
   62: order allow,deny
   63: allow from all
   64: 
   65: </Directory>
   66: 
   67: # /home/httpd/cgi-bin should be changed to whatever your ScriptAliased
   68: # CGI directory exists, if you have that configured.
   69: 
   70: <Directory /home/httpd/cgi-bin>
   71: AllowOverride None
   72: Options ExecCGI
   73: </Directory>
   74: 
   75: # Allow server status reports, with the URL of http://servername/server-status
   76: # Change the ".your_domain.com" to match your domain to enable.
   77: 
   78: <Location /server-status>
   79: SetHandler server-status
   80: AuthName "HTTPD Server Status"
   81: AuthType Basic
   82: AuthUserFile /home/httpd/lonTabs/htpasswd
   83: require user lonadm
   84: </Location>
   85: 
   86: <Location /lon-status>
   87: AuthName "LON Server Status"
   88: AuthType Basic
   89: AuthUserFile /home/httpd/lonTabs/htpasswd
   90: require user lonadm
   91: </Location>
   92: 
   93: # Allow access to local system documentation from localhost
   94: Alias /doc /usr/doc
   95: <Directory /usr/doc>
   96: order deny,allow
   97: deny from all
   98: allow from localhost
   99: Options Indexes FollowSymLinks
  100: </Directory>
  101: 
  102: # There have been reports of people trying to abuse an old bug from pre-1.1
  103: # days.  This bug involved a CGI script distributed as a part of Apache.
  104: # By uncommenting these lines you can redirect these attacks to a logging 
  105: # script on phf.apache.org.  Or, you can record them yourself, using the script
  106: # support/phf_abuse_log.cgi.
  107: 
  108: #<Location /cgi-bin/phf*>
  109: #deny from all
  110: #ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  111: #</Location>
  112: 
  113: # You may place any other directories or locations you wish to have
  114: # access information for after this one.
  115: 
  116: 
  117: # ------------------------------------------------------------ Machine Specific
  118: #
  119: # The variable values are also read and shared by lond
  120: 
  121: # LON-internal HostID of this machine
  122: 
  123: PerlSetVar       lonHostID    {[[[[lonHostID]]]]}
  124:  
  125: # Role of this machine: library, access
  126: 
  127: PerlSetVar       lonRole      {[[[[lonRole]]]]}
  128: 
  129: # Server Administration
  130: 
  131: PerlSetVar       lonAdmEMail  {[[[[lonAdmEMail]]]]}
  132: 
  133: # Default domain
  134: 
  135: PerlSetVar       lonDefDomain {[[[[lonDefDomain]]]]}
  136: 
  137: # Load Limit ( 100% loadavg )
  138: 
  139: PerlSetVar       lonLoadLim   {[[[[lonLoadLim]]]]}
  140: 
  141: # Expiration for local copies and tokens in seconds
  142: 
  143: PerlSetVar       lonExpire    {[[[[lonExpire]]]]}
  144: 
  145: # ----------------------------------------------------------- Internal Settings
  146: 
  147: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  148: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  149: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  150: PerlSetVar       lonIconsURL  /adm/lonIcons
  151: PerlSetVar       londPort     5663
  152: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  153: PerlSetVar       lonDaemons   /home/httpd/perl
  154: PerlSetVar       lonSockDir   /home/httpd/sockets
  155: PerlSetVar       lonDocRoot   /home/httpd/html
  156: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  157: 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
  158: 
  159: # ------------------------------------------------------------ Perl Information
  160: 
  161: PerlRequire      conf/startup.pl
  162: PerlFreshRestart On
  163: 
  164: # ================================================================= Directories
  165: 
  166: # ------------------------------------------------------------- Access Handlers
  167: 
  168: <LocationMatch "^/res.*">
  169: PerlAccessHandler       Apache::lonacc
  170: PerlHeaderParserHandler Apache::lonrep
  171: ErrorDocument     403 /adm/login
  172: ErrorDocument     404 /adm/notfound.html
  173: ErrorDocument     406 /adm/roles
  174: </LocationMatch>
  175: 
  176: <LocationMatch "^/raw.*">
  177: PerlAccessHandler Apache::lonracc
  178: </LocationMatch>
  179: 
  180: <LocationMatch "^/\~.*">
  181: PerlAccessHandler Apache::loncacc
  182: ErrorDocument     403 /adm/login
  183: ErrorDocument     404 /adm/notfound.html
  184: ErrorDocument     406 /adm/unauthorized.html
  185: </LocationMatch>
  186: 
  187: # ------------------------------------------------------------------------- RAT
  188: 
  189: <LocationMatch "^/\~.*\.sequence$">
  190: SetHandler perl-script
  191: PerlHandler Apache::lonratedt
  192: </LocationMatch>
  193: 
  194: <LocationMatch "^/\~.*\.page$">
  195: SetHandler perl-script
  196: PerlHandler Apache::lonratedt
  197: </LocationMatch>
  198: 
  199: <LocationMatch "^/\~.*\/ratserver$">
  200: SetHandler perl-script
  201: PerlHandler Apache::lonratsrv
  202: </LocationMatch>
  203: 
  204: # --------------------------------------------- Resource Space Content Handlers
  205: 
  206: <LocationMatch "^/res/.*/$">
  207: SetHandler perl-script
  208: PerlHandler Apache::lonindexer
  209: </LocationMatch>
  210: 
  211: <LocationMatch "^/res/.*\.tex$">
  212: SetHandler perl-script
  213: PerlHandler Apache::lontex
  214: </LocationMatch>
  215: 
  216: <LocationMatch "^/res/.*\.page$>
  217: SetHandler perl-script
  218: PerlHandler Apache::lonpage
  219: </LocationMatch>
  220: 
  221: <LocationMatch "^/res/.*\.sequence$>
  222: SetHandler perl-script
  223: PerlHandler Apache::lonsequence
  224: </LocationMatch>
  225: 
  226: <LocationMatch "^/res/.*\.meta$>
  227: SetHandler perl-script
  228: PerlHandler Apache::lonmeta
  229: </LocationMatch>
  230: 
  231: <LocationMatch "^/res/.*\.(xml|html|htm|xhtml|xhtm)$">
  232: SetHandler perl-script
  233: PerlHandler Apache::lonxml
  234: </LocationMatch>
  235: 
  236: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form)$">
  237: SetHandler perl-script
  238: PerlHandler Apache::lonhomework
  239: </LocationMatch>
  240: 
  241: # -------------------------------------------------------------- Admin Programs
  242: 
  243: <Location /adm/roles>
  244: PerlAccessHandler       Apache::lonacc
  245: SetHandler perl-script
  246: PerlHandler Apache::lonroles
  247: ErrorDocument     403 /adm/login
  248: </Location>
  249: 
  250: <Location /adm/login>
  251: SetHandler perl-script
  252: PerlHandler Apache::lonlogin
  253: </Location>
  254: 
  255: <Location /adm/logout>
  256: PerlAccessHandler       Apache::lonacc
  257: SetHandler perl-script
  258: PerlHandler Apache::lonlogout
  259: ErrorDocument     403 /adm/login
  260: </Location>
  261: 
  262: <Location /adm/authenticate>
  263: SetHandler perl-script
  264: PerlHandler Apache::lonauth
  265: </Location>
  266: 
  267: <Location /adm/annotations>
  268: PerlAccessHandler       Apache::lonacc
  269: SetHandler perl-script
  270: PerlHandler Apache::admannotations
  271: ErrorDocument     403 /adm/login
  272: </Location>
  273: 
  274: <Location /adm/bookmarks>
  275: PerlAccessHandler       Apache::lonacc
  276: SetHandler perl-script
  277: PerlHandler Apache::admbookmarks
  278: ErrorDocument     403 /adm/login
  279: </Location>
  280: 
  281: <Location /adm/flip>
  282: PerlAccessHandler       Apache::lonacc
  283: SetHandler perl-script
  284: PerlHandler Apache::lonpageflip
  285: ErrorDocument     406 /adm/roles
  286: ErrorDocument     403 /adm/login
  287: </Location>
  288: 
  289: <Location /adm/ambiguous>
  290: PerlAccessHandler       Apache::lonacc
  291: SetHandler perl-script
  292: PerlHandler Apache::lonambiguous
  293: ErrorDocument     403 /adm/login
  294: </Location>
  295: 
  296: <LocationMatch "^/adm/email/">
  297: PerlAccessHandler       Apache::lonacc
  298: SetHandler perl-script
  299: PerlHandler Apache::lonmsg
  300: ErrorDocument     403 /adm/login
  301: </LocationMatch>
  302: 
  303: <LocationMatch "^/adm/parmset/">
  304: PerlAccessHandler       Apache::lonacc
  305: SetHandler perl-script
  306: PerlHandler Apache::lonparmset
  307: ErrorDocument     403 /adm/login
  308: ErrorDocument     406 /adm/roles
  309: </LocationMatch>
  310: 

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