--- loncom/Attic/access.conf 2000/02/22 21:32:17 1.1 +++ loncom/Attic/access.conf 2000/09/21 19:00:41 1.5 @@ -1,7 +1,7 @@ ## modified for LearningOnline Network ## Gerd Kortemeyer ## -## 7/8,7/10,7/14,11/22,01/06,01/20,01/21 +## 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 ## ## access.conf -- Apache HTTP server configuration file ## @@ -112,27 +112,27 @@ Options Indexes FollowSymLinks # LON-internal HostID of this machine -PerlSetVar lonHostID msua3 +PerlSetVar lonHostID {[[[[lonHostID]]]]} # Role of this machine: library, access -PerlSetVar lonRole access +PerlSetVar lonRole {[[[[lonRole]]]]} # Server Administration -PerlSetVar lonAdmEMail korte@lite.msu.edu +PerlSetVar lonAdmEMail {[[[[lonAdmEMail]]]]} # Default domain -PerlSetVar lonDefDomain msu +PerlSetVar lonDefDomain {[[[[lonDefDomain]]]]} # Load Limit ( 100% loadavg ) -PerlSetVar lonLoadLim 2.00 +PerlSetVar lonLoadLim {[[[[lonLoadLim]]]]} # Expiration for local copies in seconds -PerlSetVar lonExpire 86400 +PerlSetVar lonExpire {[[[[lonExpire]]]]} # ----------------------------------------------------------- Internal Settings @@ -146,18 +146,23 @@ 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 # ------------------------------------------------------------ Perl Information PerlRequire conf/startup.pl PerlFreshRestart On -# ----------------------------------------------------------------- Directories +# ================================================================= 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.*"> @@ -171,16 +176,56 @@ ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/unauthorized.html </LocationMatch> -<LocationMatch "^/r.*/$"> +# ------------------------------------------------------------------------- RAT + +<LocationMatch "^/\~.*\.course$"> +SetHandler perl-script +PerlHandler Apache::lonratedt +</LocationMatch> + +<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 "^/r.*\.problem$"> +<LocationMatch "^/res/.*\.tex$"> +SetHandler perl-script +PerlHandler Apache::lontex +</LocationMatch> + +<LocationMatch "^/res/.*\.page$> SetHandler perl-script -PerlHandler Apache::lonproblem +PerlHandler Apache::lonpage </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 @@ -193,14 +238,19 @@ SetHandler perl-script PerlHandler Apache::lonlogin </Location> +<Location /adm/logout> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonlogout +</Location> + <Location /adm/authenticate> SetHandler perl-script PerlHandler Apache::lonauth </Location> - - - - - +<Location /adm/annotations> +SetHandler perl-script +PerlHandler Apache::admannotations +</Location>