Annotation of loncom/access.conf, revision 1.23

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

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