--- loncom/Attic/access.conf 2000/11/02 14:16:59 1.12 +++ loncom/Attic/access.conf 2002/02/28 18:10:37 1.29 @@ -9,7 +9,12 @@ ## ## Gerd Kortemeyer ## -## 10/3,10/5,10/12,10/16,10/20,11/2 +## 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, +## 12/26,3/1/1 +## +## Scott Harrison +## +## 03/20/2001 ## ## access.conf -- Apache HTTP server configuration file ## @@ -72,24 +77,6 @@ AllowOverride None Options ExecCGI </Directory> -# Allow server status reports, with the URL of http://servername/server-status -# Change the ".your_domain.com" to match your domain to enable. - -<Location /server-status> -SetHandler server-status -AuthName "HTTPD Server Status" -AuthType Basic -AuthUserFile /home/httpd/lonTabs/htpasswd -require user lonadm -</Location> - -<Location /lon-status> -AuthName "LON Server Status" -AuthType Basic -AuthUserFile /home/httpd/lonTabs/htpasswd -require user lonadm -</Location> - # Allow access to local system documentation from localhost Alias /doc /usr/doc <Directory /usr/doc> @@ -138,10 +125,18 @@ PerlSetVar lonDefDomain {[[[[lonDe PerlSetVar lonLoadLim {[[[[lonLoadLim]]]]} -# Expiration for local copies in seconds +# Expiration for local copies and tokens in seconds PerlSetVar lonExpire {[[[[lonExpire]]]]} +# Key to issue receipts + +PerlSetVar lonReceipt {[[[[lonReceipt]]]]} + +# Key to handle SQL access + +PerlSetVar lonSqlAccess {[[[[lonSqlAccess]]]]} + # ----------------------------------------------------------- Internal Settings PerlSetVar lonIDsDir /home/httpd/lonIDs @@ -154,149 +149,9 @@ PerlSetVar lonDaemons /home/http PerlSetVar lonSockDir /home/httpd/sockets PerlSetVar lonDocRoot /home/httpd/html PerlSetVar lonIncludes /home/httpd/html/res/adm/includes -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 +PerlSetVar lonBrowsDet netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999&amaya:amaya:mozilla:V(\d+\.\d+)\s:1 # ------------------------------------------------------------ Perl Information PerlRequire conf/startup.pl PerlFreshRestart On - -# ================================================================= Directories - -# ------------------------------------------------------------- Access Handlers - -<LocationMatch "^/res.*"> -PerlAccessHandler Apache::lonacc -PerlHeaderParserHandler Apache::lonrep -ErrorDocument 403 /adm/login -ErrorDocument 404 /adm/notfound.html -ErrorDocument 406 /adm/roles -</LocationMatch> - -<LocationMatch "^/raw.*"> -PerlAccessHandler Apache::lonracc -</LocationMatch> - -<LocationMatch "^/\~.*"> -PerlAccessHandler Apache::loncacc -ErrorDocument 403 /adm/login -ErrorDocument 404 /adm/notfound.html -ErrorDocument 406 /adm/unauthorized.html -</LocationMatch> - -# ------------------------------------------------------------------------- RAT - -<LocationMatch "^/\~.*\.sequence$"> -SetHandler perl-script -PerlHandler Apache::lonratedt -</LocationMatch> - -<LocationMatch "^/\~.*\.page$"> -SetHandler perl-script -PerlHandler Apache::lonratedt -</LocationMatch> - -<LocationMatch "^/\~.*\/ratserver$"> -SetHandler perl-script -PerlHandler Apache::lonratsrv -</LocationMatch> - -# --------------------------------------------- Resource Space Content Handlers - -<LocationMatch "^/res/.*/$"> -SetHandler perl-script -PerlHandler Apache::lonindexer -</LocationMatch> - -<LocationMatch "^/res/.*\.tex$"> -SetHandler perl-script -PerlHandler Apache::lontex -</LocationMatch> - -<LocationMatch "^/res/.*\.page$> -SetHandler perl-script -PerlHandler Apache::lonpage -</LocationMatch> - -<LocationMatch "^/res/.*\.sequence$> -SetHandler perl-script -PerlHandler Apache::lonsequence -</LocationMatch> - -<LocationMatch "^/res/.*\.meta$> -SetHandler perl-script -PerlHandler Apache::lonmeta -</LocationMatch> - -<LocationMatch "^/res/.*\.xml$"> -SetHandler perl-script -PerlHandler Apache::lonxml -</LocationMatch> - -<LocationMatch "^/res/.*\.problem$"> -SetHandler perl-script -PerlHandler Apache::lonhomework -</LocationMatch> - -# -------------------------------------------------------------- Admin Programs - -<Location /adm/roles> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::lonroles -ErrorDocument 403 /adm/login -</Location> - -<Location /adm/login> -SetHandler perl-script -PerlHandler Apache::lonlogin -</Location> - -<Location /adm/logout> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::lonlogout -ErrorDocument 403 /adm/login -</Location> - -<Location /adm/authenticate> -SetHandler perl-script -PerlHandler Apache::lonauth -</Location> - -<Location /adm/annotations> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::admannotations -ErrorDocument 403 /adm/login -</Location> - -<Location /adm/bookmarks> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::admbookmarks -ErrorDocument 403 /adm/login -</Location> - -<Location /adm/flip> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::lonpageflip -ErrorDocument 406 /adm/roles -ErrorDocument 403 /adm/login -</Location> - -<Location /adm/ambiguous> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::lonambiguous -ErrorDocument 403 /adm/login -</Location> - -<LocationMatch "^/adm/email/"> -PerlAccessHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::lonmsg -ErrorDocument 403 /adm/login -</LocationMatch> -