Annotation of loncom/access.conf, revision 1.4

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: ##
                      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: 
1.2       www       115: PerlSetVar       lonHostID    msul1
1.1       harris41  116:  
                    117: # Role of this machine: library, access
                    118: 
1.2       www       119: PerlSetVar       lonRole      library
1.1       harris41  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
1.2       www       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
1.1       harris41  150: 
                    151: # ------------------------------------------------------------ Perl Information
                    152: 
                    153: PerlRequire      conf/startup.pl
                    154: PerlFreshRestart On
                    155: 
1.4     ! www       156: # ================================================================= Directories
        !           157: 
        !           158: # ------------------------------------------------------------- Access Handlers
1.1       harris41  159: 
                    160: <LocationMatch "^/res.*">
                    161: PerlAccessHandler       Apache::lonacc
                    162: PerlHeaderParserHandler Apache::lonrep
                    163: ErrorDocument     403 /adm/login
1.4     ! www       164: ErrorDocument     404 /adm/notfound.html
1.2       www       165: ErrorDocument     406 /adm/roles
1.1       harris41  166: </LocationMatch>
                    167: 
                    168: <LocationMatch "^/raw.*">
                    169: PerlAccessHandler Apache::lonracc
                    170: </LocationMatch>
                    171: 
                    172: <LocationMatch "^/\~.*">
                    173: PerlAccessHandler Apache::loncacc
                    174: ErrorDocument     403 /adm/login
                    175: ErrorDocument     404 /adm/notfound.html
                    176: ErrorDocument     406 /adm/unauthorized.html
                    177: </LocationMatch>
                    178: 
1.4     ! www       179: # ------------------------------------------------------------------------- RAT
1.1       harris41  180: 
1.2       www       181: <LocationMatch "^/\~.*\.course$">
1.1       harris41  182: SetHandler perl-script
1.2       www       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: 
1.4     ! www       201: # --------------------------------------------- Resource Space Content Handlers
        !           202: 
        !           203: <LocationMatch "^/res/.*/$">
        !           204: SetHandler perl-script
        !           205: PerlHandler Apache::lonindexer
        !           206: </LocationMatch>
        !           207: 
        !           208: <LocationMatch "^/res/.*\.tex$">
1.2       www       209: SetHandler perl-script
                    210: PerlHandler Apache::lontex
1.1       harris41  211: </LocationMatch>
                    212: 
1.4     ! www       213: <LocationMatch "^/res/.*\.page$>
        !           214: SetHandler perl-script
        !           215: PerlHandler Apache::lonpage
        !           216: </LocationMatch>
        !           217: 
        !           218: <LocationMatch "^/res/.*\.xml$">
        !           219: SetHandler perl-script
        !           220: PerlHandler Apache::lonxml
        !           221: </LocationMatch>
        !           222: 
        !           223: <LocationMatch "^/res/.*\.problem$">
        !           224: SetHandler perl-script
        !           225: PerlHandler Apache::lonhomework
        !           226: </LocationMatch>
        !           227: # -------------------------------------------------------------- Admin Programs
        !           228: 
1.1       harris41  229: <Location /adm/roles>
                    230: PerlAccessHandler       Apache::lonacc
                    231: SetHandler perl-script
                    232: PerlHandler Apache::lonroles
                    233: ErrorDocument     403 /adm/login
                    234: </Location>
                    235: 
                    236: <Location /adm/login>
                    237: SetHandler perl-script
                    238: PerlHandler Apache::lonlogin
1.2       www       239: </Location>
                    240: 
                    241: <Location /adm/logout>
                    242: PerlAccessHandler       Apache::lonacc
                    243: SetHandler perl-script
                    244: PerlHandler Apache::lonlogout
1.1       harris41  245: </Location>
                    246: 
                    247: <Location /adm/authenticate>
                    248: SetHandler perl-script
                    249: PerlHandler Apache::lonauth
                    250: </Location>
1.4     ! www       251: 
        !           252: <Location /adm/annotations>
        !           253: SetHandler perl-script
        !           254: PerlHandler Apache::admannotations
        !           255: </Location>
        !           256: 
        !           257: 
        !           258: 
        !           259: # ------------------------------------------------------------------ Test Trash
        !           260: 
        !           261: <Location /adm/test>
        !           262: SetHandler perl-script
        !           263: PerlAccessHandler Apache::lonacc
        !           264: PerlHandler Apache::lontest
        !           265: </Location>
        !           266: 
        !           267: 
1.1       harris41  268: 
                    269: 
                    270: 
                    271: 
                    272: 
                    273: 
                    274: 

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