--- loncom/Attic/access.conf 2000/07/11 01:42:33 1.3 +++ loncom/Attic/access.conf 2000/10/05 21:36:02 1.8 @@ -1,7 +1,15 @@ ## modified for LearningOnline Network ## Gerd Kortemeyer ## -## 7/8,7/10,7/14,11/22,01/06,01/20,01/21,5/29,5/31,7/1,7/10 +## 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 +## +## Scott Harrison +## +## 9/21,9/23 +## +## Gerd Kortemeyer +## +## 10/3,10/5 ## ## access.conf -- Apache HTTP server configuration file ## @@ -112,27 +120,27 @@ Options Indexes FollowSymLinks # LON-internal HostID of this machine -PerlSetVar lonHostID msul1 +PerlSetVar lonHostID {[[[[lonHostID]]]]} # Role of this machine: library, access -PerlSetVar lonRole library +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 @@ -153,12 +161,15 @@ PerlSetVar lonBrowsDet netscape:m 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> @@ -173,15 +184,7 @@ ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/unauthorized.html </LocationMatch> -<LocationMatch "^/r.*/$"> -SetHandler perl-script -PerlHandler Apache::lonindexer -</LocationMatch> - -<LocationMatch "^/\~.*\.course$"> -SetHandler perl-script -PerlHandler Apache::lonratedt -</LocationMatch> +# ------------------------------------------------------------------------- RAT <LocationMatch "^/\~.*\.sequence$"> SetHandler perl-script @@ -198,11 +201,35 @@ SetHandler perl-script PerlHandler Apache::lonratsrv </LocationMatch> -<LocationMatch "\.tex$"> +# --------------------------------------------- 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/.*\.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 @@ -219,6 +246,7 @@ PerlHandler Apache::lonlogin PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonlogout +ErrorDocument 403 /adm/login </Location> <Location /adm/authenticate> @@ -226,9 +254,18 @@ 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/flip> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonpageflip +ErrorDocument 406 /adm/roles +ErrorDocument 403 /adm/login +</Location>