--- loncom/Attic/srm.conf 2001/01/29 18:58:29 1.3 +++ loncom/Attic/srm.conf 2001/10/14 04:20:35 1.26 @@ -289,7 +289,6 @@ ErrorDocument 403 /adm/login ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/unauthorized.html ErrorDocument 500 /adm/errorhandler -Options Indexes AllowOverride None </LocationMatch> @@ -310,14 +309,22 @@ SetHandler perl-script PerlHandler Apache::lonratsrv </LocationMatch> +<Location /adm/ratparms> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonratparms +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler +</Location> + # --------------------------------------------- Resource Space Content Handlers -<LocationMatch "^/res/.*/$"> +<LocationMatch "^/res.*/$"> SetHandler perl-script PerlHandler Apache::lonindexer </LocationMatch> -<LocationMatch "^/res/.*\.tex$"> +<LocationMatch "^/(res|\~).*\.tex$"> SetHandler perl-script PerlHandler Apache::lontex </LocationMatch> @@ -337,18 +344,34 @@ SetHandler perl-script PerlHandler Apache::lonmeta </LocationMatch> -<LocationMatch "^/res/.*\.(xml|html|htm|xhtml|xhtm)$"> +<LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$"> SetHandler perl-script PerlHandler Apache::lonxml </LocationMatch> -<LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form)$"> +<LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$"> SetHandler perl-script PerlHandler Apache::lonhomework </LocationMatch> +<LocationMatch "^/adm/wrapper/"> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonwrapper +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler +</LocationMatch> + # -------------------------------------------------------------- Admin Programs +<Location /adm/statistics> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonstatistics +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler +</Location> + <Location /adm/roles> PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -424,6 +447,33 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> +<Location /adm/grades> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::grades +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler +</Location> + +<Location /adm/createcourse> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::loncreatecourse +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler +</Location> + +<Location /adm/createuser> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::loncreateuser +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler +</Location> + <Location /adm/publish> PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -434,6 +484,66 @@ ErrorDocument 406 /adm/unauthorized. ErrorDocument 500 /adm/errorhandler </Location> +<LocationMatch "^/\~.*/$"> +PerlAccessHandler Apache::loncacc +SetHandler perl-script +PerlHandler Apache::lonpubdir +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized.html +ErrorDocument 500 /adm/errorhandler +</LocationMatch> + +<Location /adm/pubdir> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonpubdir +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized.html +ErrorDocument 500 /adm/errorhandler +</Location> + +<Location /adm/retrieve> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonretrieve +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized.html +ErrorDocument 500 /adm/errorhandler +</Location> + +<Location /adm/cfile> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::loncfile +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized.html +ErrorDocument 500 /adm/errorhandler +</Location> + +<Location /adm/diff> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::londiff +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized.html +ErrorDocument 500 /adm/errorhandler +</Location> + +<Location /adm/upload> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonupload +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized.html +ErrorDocument 500 /adm/errorhandler +</Location> + <Location /adm/assesscalc> PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -461,20 +571,21 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> -<Location /adm/dropadd> +<Location /adm/chart> PerlAccessHandler Apache::lonacc SetHandler perl-script -PerlHandler Apache::londropadd +PerlHandler Apache::lonchart ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> -<Location /adm/mydesk> +<Location /adm/dropadd> PerlAccessHandler Apache::lonacc SetHandler perl-script -PerlHandler Apache::lonmydesk +PerlHandler Apache::londropadd ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> @@ -544,12 +655,34 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> +<Location /adm/groupsort> +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::groupsort +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler +</Location> + <Location /adm/errorhandler> SetHandler perl-script PerlHandler Apache::lonerrorhandler </Location> -# --------------------------------------------------------------- Backdoor Test +# ------------------------------------------------- Backdoor Adm Tests/Programs + +<Location /cgi-bin/loncron.pl> +AuthName "LON Network Synchronization Handler" +AuthType Basic +AuthUserFile /home/httpd/lonTabs/htpasswd +require user lonadm +</Location> + +<Location /cgi-bin/metadata_keywords.pl> +AuthName "LON Keyword Handler" +AuthType Basic +AuthUserFile /home/httpd/lonTabs/htpasswd +require user lonadm +</Location> <Location /adm/test> AuthName "LON Test Handler"