Annotation of loncom/access.conf, revision 1.6

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

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