File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.203: download - view: text, annotated - select for diffs
Sat Apr 23 16:02:27 2011 UTC (13 years, 1 month ago) by www
Branches: MAIN
CVS tags: HEAD
Saving my work: separate handler to pick resources and folders

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.203 2011/04/23 16:02:27 www Exp $
    5: ##
    6: 
    7: #
    8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
    9: #
   10: # ================================================================ DocumentRoot
   11: 
   12: DocumentRoot "/home/httpd/html"
   13: 
   14: # ======================================================================== User
   15: 
   16: User www
   17: Group www
   18: 
   19: # ======================================================= Shared Object Modules
   20: 
   21: LoadModule perl_module       modules/libperl.so
   22: <IfDefine !MODPERL2>
   23: AddModule mod_perl.c
   24: </IfDefine>
   25: 
   26: <IfDefine MODPERL2>
   27: PerlSetVar	MODPERL2	1
   28: </IfDefine>
   29: # =============================================================== Miscellaneous
   30: 
   31: ServerAdmin korte@lite.msu.edu
   32: ExtendedStatus On
   33: #
   34: # LON-CAPA Section (extensions to srm.conf name space servicing)
   35: #
   36: # ===================================================================== Aliases
   37: 
   38: Alias /zipspool/ /home/httpd/zipspool/
   39: Alias /prtspool/ /home/httpd/prtspool/
   40: Alias /captchaspool/ /home/httpd/captchaspool/
   41: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   42: 
   43: # ================================================================= Directories
   44: 
   45: # ------------------------------------------------------------- Access Handlers
   46: 
   47: PerlTransHandler	Apache::lontrans
   48: PerlCleanupHandler	Apache::lonacc::cleanup
   49: 
   50: PerlAuthenHandler Apache::checkauthen
   51: PerlSetVar lonOtherAuthen no
   52: 
   53: #PerlWarn On
   54: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
   55: PerlAuthenHandler	'sub { return OK }' 
   56: </LocationMatch>
   57: 
   58: # Send proper expires header to avoid unnecessary HTTP request for static content
   59: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/ckeditor)">
   60:         ExpiresActive On
   61:         ExpiresDefault "access plus 12 hours"
   62:         Header set Cache-Control "public, no-transform"
   63: </LocationMatch>
   64: 
   65: <LocationMatch "^/+res.*">
   66: 
   67: AuthType LONCAPA
   68: Require valid-user
   69: 
   70: PerlAccessHandler      Apache::publiccheck
   71: PerlAuthzHandler       Apache::lonacc
   72: PerlHeaderParserHandler Apache::lonrep
   73: ErrorDocument     403 /adm/login
   74: ErrorDocument     404 /adm/notfound.html
   75: ErrorDocument     406 /adm/roles
   76: ErrorDocument	  500 /adm/errorhandler
   77: </LocationMatch>
   78: 
   79: 
   80: <LocationMatch "/.*">
   81: </LocationMatch>
   82: 
   83: 
   84: <LocationMatch "^/+enc.*">
   85: SetHandler perl-script
   86: PerlHandler       Apache::lonencurl
   87: ErrorDocument     403 /adm/login
   88: ErrorDocument     404 /adm/notfound.html
   89: ErrorDocument     406 /adm/roles
   90: ErrorDocument	  500 /adm/errorhandler
   91: </LocationMatch>
   92: 
   93: <Location /adm/portfolio>
   94: AuthType LONCAPA
   95: Require valid-user
   96: PerlAuthzHandler Apache::lonacc
   97: SetHandler perl-script
   98: PerlHandler Apache::portfolio
   99: </Location>
  100: 
  101: <Location /adm/coursegrp_portfolio>
  102: AuthType LONCAPA
  103: Require valid-user
  104: PerlAuthzHandler Apache::lonacc
  105: SetHandler perl-script
  106: PerlHandler Apache::portfolio
  107: </Location>
  108: 
  109: <Location /adm/pdfupload>
  110: AuthType LONCAPA
  111: Require valid-user
  112: PerlAuthzHandler Apache::lonacc
  113: SetHandler perl-script
  114: PerlHandler             Apache::lonpdfupload
  115: ErrorDocument     403 /adm/login
  116: ErrorDocument     404 /adm/notfound.html
  117: ErrorDocument     406 /adm/roles
  118: ErrorDocument     500 /adm/errorhandler
  119: </Location>
  120: 
  121: <LocationMatch "^/+userfiles.*">
  122: PerlAccessHandler       Apache::lontokacc
  123: PerlCleanupHandler	Apache::lontokacc::removefile
  124: PerlCleanupHandler	Apache::lonacc::cleanup
  125: </LocationMatch>
  126: 
  127: <LocationMatch "^/+uploaded.*">
  128: AuthType LONCAPA
  129: Require valid-user
  130: PerlAuthzHandler	Apache::lonacc
  131: PerlHandler 		Apache::londatecheck
  132: PerlHandler  		Apache::lonipcheck
  133: PerlHeaderParserHandler Apache::lonuploadrep
  134: ErrorDocument     403 /adm/login
  135: ErrorDocument     404 /adm/notfound.html
  136: ErrorDocument     406 /adm/roles
  137: ErrorDocument	  500 /adm/errorhandler
  138: </LocationMatch>
  139: 
  140: <LocationMatch "^/+editupload.*">
  141: AuthType LONCAPA
  142: Require valid-user
  143: PerlAuthzHandler	Apache::lonacc
  144: ErrorDocument     403 /adm/login
  145: ErrorDocument     406 /adm/roles
  146: ErrorDocument	  500 /adm/errorhandler
  147: </LocationMatch>
  148: 
  149: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
  150: PerlAuthenHandler	Apache::lonuploadedacc
  151: PerlAuthzHandler	Apache::lonuploadedacc::skip_phase
  152: PerlAccessHandler	Apache::lonuploadedacc::skip_phase
  153: </LocationMatch>
  154: 
  155: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
  156: PerlAccessHandler      Apache::publiccheck
  157: AuthType LONCAPA
  158: Require valid-user
  159: PerlAuthzHandler       Apache::lonacc
  160: </LocationMatch>
  161: 
  162: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
  163: PerlAccessHandler      Apache::publiccheck
  164: AuthType LONCAPA
  165: Require valid-user
  166: PerlAuthzHandler       Apache::lonacc
  167: </LocationMatch>
  168: 
  169: <LocationMatch "^/+uploaded/.*\.page$">
  170: SetHandler perl-script
  171: PerlHandler Apache::lonpage
  172: </LocationMatch>
  173: 
  174: <LocationMatch "^/+uploaded/.*\.sequence$">
  175: SetHandler perl-script
  176: PerlHandler Apache::lonsequence
  177: </LocationMatch>
  178: 
  179: <LocationMatch "^/+public/.*/syllabus$">
  180: PerlAccessHandler      Apache::publiccheck
  181: AuthType LONCAPA
  182: Require valid-user
  183: PerlAuthzHandler	Apache::lonacc
  184: SetHandler              perl-script
  185: PerlHandler             Apache::lonsyllabus
  186: ErrorDocument     404 /adm/notfound.html
  187: ErrorDocument	  500 /adm/errorhandler
  188: </LocationMatch>
  189: 
  190: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
  191: PerlAccessHandler      Apache::publiccheck
  192: AuthType LONCAPA
  193: Require valid-user
  194: PerlAuthzHandler	Apache::lonacc
  195: SetHandler              perl-script
  196: PerlHandler             Apache::lonrss
  197: ErrorDocument     404 /adm/notfound.html
  198: ErrorDocument	  500 /adm/errorhandler
  199: </LocationMatch>
  200: 
  201: <LocationMatch "^/adm/.*/aboutme$">
  202: AuthType LONCAPA
  203: Require valid-user
  204: PerlAuthzHandler	Apache::lonacc
  205: SetHandler              perl-script
  206: PerlHandler             Apache::lonaboutme
  207: ErrorDocument     404 /adm/notfound.html
  208: ErrorDocument     406 /adm/notinit.html
  209: ErrorDocument	  500 /adm/errorhandler
  210: </LocationMatch>
  211: 
  212: <LocationMatch "^/adm/.*/aboutme/portfolio$">
  213: PerlAccessHandler       Apache::publiccheck
  214: AuthType LONCAPA
  215: Require valid-user
  216: PerlAuthzHandler	Apache::lonacc
  217: SetHandler              perl-script
  218: PerlHandler             Apache::lonaboutme
  219: ErrorDocument     404 /adm/notfound.html
  220: ErrorDocument     406 /adm/notinit.html
  221: ErrorDocument	  500 /adm/errorhandler
  222: </LocationMatch>
  223: 
  224: <LocationMatch "^/adm/.*/smppg$">
  225: AuthType LONCAPA
  226: Require valid-user
  227: PerlAuthzHandler	Apache::lonacc
  228: SetHandler              perl-script
  229: PerlHandler             Apache::londatecheck
  230: PerlHandler		Apache::lonipcheck
  231: PerlHandler             Apache::lonsimplepage
  232: ErrorDocument     404 /adm/notfound.html
  233: ErrorDocument     406 /adm/notinit.html
  234: ErrorDocument	  500 /adm/errorhandler
  235: </LocationMatch>
  236: 
  237: <LocationMatch "^/adm/.*/bulletinboard$">
  238: AuthType LONCAPA
  239: Require valid-user
  240: PerlAuthzHandler	Apache::lonacc
  241: SetHandler              perl-script
  242: PerlHandler             Apache::londatecheck
  243: PerlHandler		Apache::lonipcheck
  244: PerlHandler             Apache::lonbulletin
  245: ErrorDocument     404 /adm/notfound.html
  246: ErrorDocument     406 /adm/notinit.html
  247: ErrorDocument	  500 /adm/errorhandler
  248: </LocationMatch>
  249: 
  250: <LocationMatch "\.problem/smpedit$">
  251: AuthType LONCAPA
  252: Require valid-user
  253: PerlAuthzHandler	Apache::lonacc
  254: SetHandler              perl-script
  255: PerlHandler             Apache::lonsimpleproblemedit
  256: ErrorDocument     404 /adm/notfound.html
  257: ErrorDocument     406 /adm/notinit.html
  258: ErrorDocument	  500 /adm/errorhandler
  259: </LocationMatch>
  260: 
  261: <LocationMatch "^/+priv.*">
  262: AuthType LONCAPA
  263: Require valid-user
  264: PerlAuthzHandler Apache::loncacc
  265: SetHandler        perl-script
  266: PerlHandler       Apache::lonconstruct
  267: ErrorDocument     403 /adm/login
  268: ErrorDocument     404 /adm/notfound.html
  269: ErrorDocument     406 /adm/unauthorized
  270: ErrorDocument	  500 /adm/errorhandler
  271: </LocationMatch>
  272: 
  273: <LocationMatch "^/+raw.*">
  274: PerlAccessHandler Apache::lonracc
  275: </LocationMatch>
  276: 
  277: <LocationMatch "^/+\~.*">
  278: AuthType LONCAPA
  279: Require valid-user
  280: PerlAuthzHandler Apache::loncacc
  281: ErrorDocument     403 /adm/login
  282: ErrorDocument     404 /adm/notfound.html
  283: ErrorDocument     406 /adm/unauthorized
  284: ErrorDocument	  500 /adm/errorhandler
  285: </LocationMatch>
  286: 
  287: <LocationMatch "^/adm/helper/.*\.helper$">
  288: AuthType LONCAPA
  289: Require valid-user
  290: PerlAuthzHandler  Apache::lonacc
  291: SetHandler        perl-script
  292: PerlHandler       Apache::lonhelper
  293: ErrorDocument     403 /adm/login
  294: ErrorDocument     404 /adm/notfound.html
  295: ErrorDocument     406 /adm/unauthorized
  296: ErrorDocument     500 /adm/errorhandler
  297: </LocationMatch>
  298: 
  299: <LocationMatch "/prtspool">
  300: AuthType LONCAPA
  301: Require valid-user
  302: PerlAuthzHandler Apache::lonacc
  303: ErrorDocument     403 /adm/login
  304: ErrorDocument     404 /adm/notfound.html
  305: ErrorDocument     406 /adm/roles
  306: ErrorDocument     413 /adm/overloaded.txt
  307: ErrorDocument	  500 /adm/errorhandler
  308: </LocationMatch>
  309: 
  310: <LocationMatch "/zipspool">
  311: AuthType LONCAPA
  312: Require valid-user
  313: PerlAuthzHandler Apache::lonacc
  314: ErrorDocument     403 /adm/login
  315: ErrorDocument     404 /adm/notfound.html
  316: ErrorDocument     406 /adm/roles
  317: ErrorDocument     413 /adm/overloaded.txt
  318: ErrorDocument	  500 /adm/errorhandler
  319: </LocationMatch>
  320: # ------------------------------------------------------------------------- RAT
  321: 
  322: <LocationMatch "^/\~.*\.sequence$">
  323: SetHandler perl-script
  324: PerlHandler Apache::lonratedt
  325: </LocationMatch>
  326: 
  327: <LocationMatch "^/\~.*\.page$">
  328: SetHandler perl-script
  329: PerlHandler Apache::lonratedt
  330: </LocationMatch>
  331: 
  332: <LocationMatch "^/\~.*\/ratserver$">
  333: SetHandler perl-script
  334: PerlHandler Apache::lonratsrv
  335: </LocationMatch>
  336: 
  337: <LocationMatch "^/\~.*\/adveditmenu$">
  338: SetHandler perl-script
  339: PerlHandler Apache::lonratmenu
  340: </LocationMatch>
  341: 
  342: <Location /adm/ratparms>
  343: AuthType LONCAPA
  344: Require valid-user
  345: PerlAuthzHandler       Apache::lonacc
  346: SetHandler perl-script
  347: PerlHandler Apache::lonratparms
  348: ErrorDocument     403 /adm/login
  349: ErrorDocument	  500 /adm/errorhandler
  350: </Location>
  351: 
  352: # --------------------------------------------- Resource Space Content Handlers
  353: 
  354: <LocationMatch "^/+res.*/$">
  355: SetHandler perl-script
  356: PerlHandler Apache::lonindexer
  357: PerlCleanupHandler Apache::lonindexer::cleanup
  358: PerlCleanupHandler	Apache::lonacc::cleanup
  359: </LocationMatch>
  360: 
  361: <LocationMatch "^/+res.*\.tex$">
  362: SetHandler perl-script
  363: PerlHandler Apache::lontex
  364: </LocationMatch>
  365: 
  366: <LocationMatch "^/+res/.*\.page$">
  367: SetHandler perl-script
  368: PerlHandler Apache::lonpage
  369: </LocationMatch>
  370: 
  371: <LocationMatch "^/+res/.*\.sequence$">
  372: SetHandler perl-script
  373: PerlHandler Apache::lonsequence
  374: </LocationMatch>
  375: 
  376: <LocationMatch "^/+(res|\~|public|uploaded|editupload|adm).*\.meta$">
  377: PerlAccessHandler      Apache::publiccheck
  378: SetHandler perl-script
  379: PerlHandler Apache::lonmeta
  380: ErrorDocument     413 /adm/overloaded.txt
  381: </LocationMatch>
  382: 
  383: <LocationMatch "^/adm/bombs/">
  384: AuthType LONCAPA
  385: Require valid-user
  386: SetHandler perl-script
  387: PerlAuthzHandler Apache::lonacc
  388: PerlHandler Apache::lonmeta
  389: </LocationMatch>
  390: 
  391: 
  392: 
  393: <LocationMatch "^/+(res|\~).*\.rights$">
  394: SetHandler perl-script
  395: PerlHandler Apache::lonrights
  396: </LocationMatch>
  397: 
  398: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
  399: SetHandler perl-script
  400: PerlHandler Apache::londatecheck
  401: PerlHandler Apache::lonipcheck
  402: PerlHandler Apache::lonxml
  403: </LocationMatch>
  404: 
  405: <LocationMatch "^/+(res|\~).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
  406: SetHandler perl-script
  407: PerlHandler Apache::lonhomework
  408: </LocationMatch>
  409: 
  410: <LocationMatch "^/+\~.*\.(js|css|txt|tex)$">
  411: SetHandler perl-script
  412: PerlHandler Apache::lonxml
  413: </LocationMatch>
  414: 
  415: <LocationMatch "^/adm/wrapper/">
  416: AuthType LONCAPA
  417: Require valid-user
  418: PerlAuthzHandler       Apache::lonacc
  419: PerlHandler Apache::londatecheck
  420: PerlHandler Apache::lonipcheck
  421: SetHandler perl-script
  422: PerlHandler Apache::lonwrapper
  423: ErrorDocument     403 /adm/login
  424: ErrorDocument	  500 /adm/errorhandler
  425: </LocationMatch>
  426: 
  427: <LocationMatch "^/adm/source">
  428: AuthType LONCAPA
  429: Require valid-user
  430: PerlAuthzHandler       Apache::lonacc
  431: SetHandler perl-script
  432: PerlHandler Apache::lonsource
  433: ErrorDocument     403 /adm/login
  434: ErrorDocument     406 /adm/roles
  435: ErrorDocument	  500 /adm/errorhandler
  436: </LocationMatch>
  437: 
  438: 
  439: <LocationMatch "^/adm/localize/">
  440: AuthType LONCAPA
  441: Require valid-user
  442: PerlAuthzHandler       Apache::lonacc
  443: SetHandler perl-script
  444: PerlHandler Apache::lonlocalize
  445: ErrorDocument     403 /adm/login
  446: ErrorDocument	  500 /adm/errorhandler
  447: </LocationMatch>
  448: 
  449: # -------------------------------------------------------------- Admin Programs
  450: 
  451: <Location /adm/randomlabel.png>
  452: AuthType LONCAPA
  453: Require valid-user
  454: PerlAuthzHandler       Apache::lonacc
  455: SetHandler perl-script
  456: PerlHandler Apache::randomlylabel
  457: ErrorDocument     403 /adm/login
  458: ErrorDocument	  500 /adm/errorhandler
  459: </Location>
  460: 
  461: <Location /adm/imagechoice>
  462: AuthType LONCAPA
  463: Require valid-user
  464: PerlAuthzHandler       Apache::lonacc
  465: SetHandler perl-script
  466: PerlHandler Apache::imagechoice
  467: ErrorDocument     403 /adm/login
  468: ErrorDocument	  500 /adm/errorhandler
  469: </Location>
  470: 
  471: <Location /adm/searchcourse>
  472: AuthType LONCAPA
  473: Require valid-user
  474: PerlAuthzHandler       Apache::lonacc
  475: SetHandler perl-script
  476: PerlHandler Apache::lonsearchcourse
  477: ErrorDocument     403 /adm/login
  478: ErrorDocument     500 /adm/errorhandler
  479: </Location>
  480: 
  481: <Location /adm/indexcourse>
  482: AuthType LONCAPA
  483: Require valid-user
  484: PerlAuthzHandler       Apache::lonacc
  485: SetHandler perl-script
  486: PerlHandler Apache::lonindexcourse
  487: ErrorDocument     403 /adm/login
  488: ErrorDocument     500 /adm/errorhandler
  489: </Location>
  490: 
  491: <Location /adm/statistics>
  492: AuthType LONCAPA
  493: Require valid-user
  494: PerlAuthzHandler       Apache::lonacc
  495: SetHandler perl-script
  496: PerlHandler Apache::lonstatistics
  497: ErrorDocument     403 /adm/login
  498: ErrorDocument     413 /adm/overloaded.txt
  499: ErrorDocument	  500 /adm/errorhandler
  500: </Location>
  501: 
  502: <Location /adm/trackstudent>
  503: AuthType LONCAPA
  504: Require valid-user
  505: PerlAuthzHandler       Apache::lonacc
  506: SetHandler perl-script
  507: PerlHandler Apache::lontrackstudent
  508: ErrorDocument     403 /adm/login
  509: ErrorDocument     413 /adm/overloaded.txt
  510: ErrorDocument	  500 /adm/errorhandler
  511: </Location>
  512: 
  513: <Location /adm/roles>
  514: AuthType LONCAPA
  515: Require valid-user
  516: PerlAuthzHandler       Apache::lonacc
  517: SetHandler perl-script
  518: PerlHandler Apache::lonroles
  519: ErrorDocument     403 /adm/login
  520: ErrorDocument     409 /adm/preferences?action=lockwarning
  521: ErrorDocument	  500 /adm/errorhandler
  522: </Location>
  523: 
  524: <Location /adm/menu>
  525: AuthType LONCAPA
  526: Require valid-user
  527: PerlAuthzHandler       Apache::lonacc
  528: SetHandler perl-script
  529: PerlHandler Apache::lonmainmenu
  530: ErrorDocument     403 /adm/login
  531: ErrorDocument	  500 /adm/errorhandler
  532: </Location>
  533: 
  534: <Location /adm/pickresource>
  535: AuthType LONCAPA
  536: Require valid-user
  537: PerlAuthzHandler       Apache::lonacc
  538: SetHandler perl-script
  539: PerlHandler Apache::lonpickresource
  540: ErrorDocument     403 /adm/login
  541: ErrorDocument     500 /adm/errorhandler
  542: </Location>
  543: 
  544: <Location /adm/pickauthor>
  545: AuthType LONCAPA
  546: Require valid-user
  547: PerlAuthzHandler       Apache::lonacc
  548: SetHandler perl-script
  549: PerlHandler Apache::lonpickauthor
  550: ErrorDocument     403 /adm/login
  551: ErrorDocument     500 /adm/errorhandler
  552: </Location>
  553: 
  554: <Location /adm/pickstudent>
  555: AuthType LONCAPA
  556: Require valid-user
  557: PerlAuthzHandler       Apache::lonacc
  558: SetHandler perl-script
  559: PerlHandler Apache::lonpickstudent
  560: ErrorDocument     403 /adm/login
  561: ErrorDocument	  500 /adm/errorhandler
  562: </Location>
  563: 
  564: <Location /adm/pickuser>
  565: AuthType LONCAPA
  566: Require valid-user
  567: PerlAuthzHandler       Apache::lonacc
  568: SetHandler perl-script
  569: PerlHandler Apache::lonpickuser
  570: ErrorDocument     403 /adm/login
  571: ErrorDocument     406 /adm/roles
  572: ErrorDocument     500 /adm/errorhandler
  573: </Location>
  574: 
  575: <Location /adm/pickcourse>
  576: AuthType LONCAPA
  577: Require valid-user
  578: PerlAuthzHandler       Apache::lonacc
  579: SetHandler perl-script
  580: PerlHandler Apache::lonpickcourse
  581: ErrorDocument     403 /adm/login
  582: ErrorDocument	  500 /adm/errorhandler
  583: </Location>
  584: 
  585: <Location /adm/pickcode>
  586: AuthType LONCAPA
  587: Require valid-user
  588: PerlAuthzHandler       Apache::lonacc
  589: SetHandler perl-script
  590: PerlHandler Apache::lonpickcode
  591: ErrorDocument     403 /adm/login
  592: ErrorDocument	  500 /adm/errorhandler
  593: </Location>
  594: 
  595: <Location /adm/login>
  596: SetHandler perl-script
  597: PerlHandler Apache::lonlogin
  598: </Location>
  599: 
  600: <Location /adm/restrictedaccess>
  601: PerlAccessHandler      Apache::publiccheck
  602: AuthType LONCAPA
  603: Require valid-user
  604: SetHandler perl-script
  605: PerlAuthzHandler       Apache::lonacc
  606: PerlHandler Apache::restrictedaccess
  607: ErrorDocument	  500 /adm/errorhandler
  608: </Location>
  609: 
  610: <Location /adm/blockedaccess>
  611: PerlAccessHandler      Apache::publiccheck
  612: AuthType LONCAPA
  613: Require valid-user
  614: SetHandler perl-script
  615: PerlAuthzHandler       Apache::lonacc
  616: PerlHandler Apache::blockedaccess
  617: ErrorDocument     500 /adm/errorhandler
  618: </Location>
  619: 
  620: <Location /adm/logout>
  621: AuthType LONCAPA
  622: Require valid-user
  623: PerlAuthzHandler       Apache::lonacc
  624: SetHandler perl-script
  625: PerlHandler Apache::lonlogout
  626: ErrorDocument     403 /adm/login
  627: ErrorDocument     409 /adm/preferences?action=lockwarning
  628: ErrorDocument	  500 /adm/errorhandler
  629: </Location>
  630: 
  631: <Location /adm/switchserver>
  632: AuthType LONCAPA
  633: Require valid-user
  634: PerlAuthzHandler       Apache::lonacc
  635: SetHandler perl-script
  636: PerlHandler Apache::switchserver
  637: ErrorDocument     403 /adm/login
  638: ErrorDocument	  500 /adm/errorhandler
  639: </Location>
  640: 
  641: <Location /adm/authenticate>
  642: SetHandler perl-script
  643: PerlHandler Apache::lonauth
  644: </Location>
  645: 
  646: <Location /adm/migrateuser>
  647: SetHandler perl-script
  648: PerlHandler Apache::migrateuser
  649: </Location>
  650: 
  651: <Location /adm/annotations>
  652: AuthType LONCAPA
  653: Require valid-user
  654: PerlAuthzHandler       Apache::lonacc
  655: SetHandler perl-script
  656: PerlHandler Apache::admannotations
  657: ErrorDocument     403 /adm/login
  658: ErrorDocument	  500 /adm/errorhandler
  659: </Location>
  660: 
  661: <Location /adm/spellcheck>
  662: AuthType LONCAPA
  663: Require valid-user
  664: PerlAuthzHandler       Apache::lonacc
  665: SetHandler perl-script
  666: PerlHandler Apache::lonspeller
  667: ErrorDocument     403 /adm/login
  668: ErrorDocument	  500 /adm/errorhandler
  669: </Location>
  670: 
  671: <Location /adm/flip>
  672: AuthType LONCAPA
  673: Require valid-user
  674: PerlAuthzHandler       Apache::lonacc
  675: SetHandler perl-script
  676: PerlHandler Apache::lonpageflip
  677: PerlCleanupHandler Apache::lonpageflip::cleanup
  678: PerlCleanupHandler	Apache::lonacc::cleanup
  679: ErrorDocument     406 /adm/roles
  680: ErrorDocument     403 /adm/login
  681: ErrorDocument	  500 /adm/errorhandler
  682: </Location>
  683: 
  684: <Location /adm/ambiguous>
  685: AuthType LONCAPA
  686: Require valid-user
  687: PerlAuthzHandler       Apache::lonacc
  688: SetHandler perl-script
  689: PerlHandler Apache::lonambiguous
  690: PerlCleanupHandler Apache::lonambiguous::cleanup
  691: PerlCleanupHandler	Apache::lonacc::cleanup
  692: ErrorDocument     403 /adm/login
  693: ErrorDocument	  500 /adm/errorhandler
  694: </Location>
  695: 
  696: <Location /adm/email>
  697: AuthType LONCAPA
  698: Require valid-user
  699: PerlAuthzHandler       Apache::lonacc
  700: SetHandler perl-script
  701: PerlHandler Apache::lonmsgdisplay
  702: ErrorDocument     403 /adm/login
  703: ErrorDocument	  500 /adm/errorhandler
  704: </Location>
  705: 
  706: <Location /adm/notify>
  707: AuthType LONCAPA
  708: Require valid-user
  709: PerlAuthzHandler       Apache::lonacc
  710: SetHandler perl-script
  711: PerlHandler Apache::lonnotify
  712: ErrorDocument     403 /adm/login
  713: ErrorDocument     500 /adm/errorhandler
  714: </Location>
  715: 
  716: <Location /adm/parmset>
  717: AuthType LONCAPA
  718: Require valid-user
  719: PerlAuthzHandler       Apache::lonacc
  720: SetHandler perl-script
  721: PerlHandler Apache::lonparmset
  722: ErrorDocument     403 /adm/login
  723: ErrorDocument     406 /adm/roles
  724: ErrorDocument	  500 /adm/errorhandler
  725: </Location>
  726: 
  727: <Location /adm/courseprefs>
  728: AuthType LONCAPA
  729: Require valid-user
  730: PerlAuthzHandler       Apache::lonacc
  731: SetHandler perl-script
  732: PerlHandler Apache::courseprefs
  733: ErrorDocument     403 /adm/login
  734: ErrorDocument     406 /adm/roles
  735: ErrorDocument     500 /adm/errorhandler
  736: </Location>
  737: 
  738: <Location /adm/slotrequest>
  739: AuthType LONCAPA
  740: Require valid-user
  741: PerlAuthzHandler       Apache::lonacc
  742: SetHandler perl-script
  743: PerlHandler Apache::slotrequest
  744: ErrorDocument     403 /adm/login
  745: ErrorDocument     406 /adm/roles
  746: ErrorDocument	  500 /adm/errorhandler
  747: </Location>
  748: 
  749: <Location /adm/wizard>
  750: AuthType LONCAPA
  751: Require valid-user
  752: PerlAuthzHandler       Apache::lonacc
  753: SetHandler perl-script
  754: PerlHandler Apache::lonwizard
  755: ErrorDocument     403 /adm/login
  756: ErrorDocument     406 /adm/roles
  757: ErrorDocument	  500 /adm/errorhandler
  758: </Location>
  759: 
  760: <Location /adm/grades>
  761: AuthType LONCAPA
  762: Require valid-user
  763: PerlAuthzHandler       Apache::lonacc
  764: SetHandler perl-script
  765: PerlHandler Apache::grades
  766: ErrorDocument     403 /adm/login
  767: ErrorDocument     406 /adm/roles
  768: ErrorDocument	  500 /adm/errorhandler
  769: </Location>
  770: 
  771: <Location /adm/requestcourse>
  772: AuthType LONCAPA
  773: Require valid-user
  774: PerlAuthzHandler       Apache::lonacc
  775: SetHandler perl-script
  776: PerlHandler Apache::lonrequestcourse
  777: ErrorDocument     403 /adm/login
  778: ErrorDocument     406 /adm/roles
  779: ErrorDocument     500 /adm/errorhandler
  780: </Location>
  781: 
  782: <Location /adm/createcourse>
  783: AuthType LONCAPA
  784: Require valid-user
  785: PerlAuthzHandler       Apache::lonacc
  786: SetHandler perl-script
  787: PerlHandler Apache::loncreatecourse
  788: ErrorDocument     403 /adm/login
  789: ErrorDocument     406 /adm/roles
  790: ErrorDocument	  500 /adm/errorhandler
  791: </Location>
  792: 
  793: <Location /adm/modifycourse>
  794: AuthType LONCAPA
  795: Require valid-user
  796: PerlAuthzHandler       Apache::lonacc
  797: SetHandler perl-script
  798: PerlHandler Apache::lonmodifycourse
  799: ErrorDocument     403 /adm/login
  800: ErrorDocument     406 /adm/roles
  801: ErrorDocument     500 /adm/errorhandler
  802: </Location>
  803: 
  804: <Location /adm/domainprefs>
  805: AuthType LONCAPA
  806: Require valid-user
  807: PerlAuthzHandler       Apache::lonacc
  808: SetHandler perl-script
  809: PerlHandler Apache::domainprefs
  810: ErrorDocument     403 /adm/login
  811: ErrorDocument     406 /adm/roles
  812: ErrorDocument     500 /adm/errorhandler
  813: </Location>
  814: 
  815: <Location /adm/domainstatus>
  816: PerlAccessHandler       Apache::lonstatusacc
  817: SetHandler perl-script
  818: PerlHandler Apache::domainstatus
  819: ErrorDocument     403 /adm/login
  820: ErrorDocument     406 /adm/roles
  821: ErrorDocument     500 /adm/errorhandler
  822: </Location>
  823: 
  824: <Location /adm/createuser>
  825: AuthType LONCAPA
  826: Require valid-user
  827: PerlAuthzHandler       Apache::lonacc
  828: SetHandler perl-script
  829: PerlHandler Apache::loncreateuser
  830: ErrorDocument     403 /adm/login
  831: ErrorDocument     406 /adm/roles
  832: ErrorDocument	  500 /adm/errorhandler
  833: </Location>
  834: 
  835: <Location /adm/publish>
  836: AuthType LONCAPA
  837: Require valid-user
  838: PerlAuthzHandler       Apache::lonacc
  839: SetHandler perl-script
  840: PerlHandler Apache::lonpublisher
  841: ErrorDocument     403 /adm/login
  842: ErrorDocument     404 /adm/notfound.html
  843: ErrorDocument     406 /adm/unauthorized
  844: ErrorDocument	  500 /adm/errorhandler
  845: </Location>
  846: 
  847: <LocationMatch "^/+\~.*/$">
  848: AuthType LONCAPA
  849: Require valid-user
  850: PerlAuthzHandler       Apache::loncacc
  851: SetHandler perl-script
  852: PerlHandler Apache::lonpubdir
  853: ErrorDocument     403 /adm/login
  854: ErrorDocument     404 /adm/notfound.html
  855: ErrorDocument     406 /adm/unauthorized
  856: ErrorDocument	  500 /adm/errorhandler
  857: </LocationMatch>
  858: 
  859: <Location /adm/pubdir>
  860: AuthType LONCAPA
  861: Require valid-user
  862: PerlAuthzHandler       Apache::lonacc
  863: SetHandler perl-script
  864: PerlHandler Apache::lonpubdir
  865: ErrorDocument     403 /adm/login
  866: ErrorDocument     404 /adm/notfound.html
  867: ErrorDocument     406 /adm/unauthorized
  868: ErrorDocument	  500 /adm/errorhandler
  869: </Location>
  870: 
  871: <Location /adm/unauthorized>
  872: AuthType LONCAPA
  873: Require valid-user
  874: PerlAuthzHandler       Apache::lonacc
  875: SetHandler perl-script
  876: PerlHandler Apache::lonunauthorized
  877: ErrorDocument     403 /adm/login
  878: ErrorDocument     404 /adm/notfound.html
  879: ErrorDocument	  500 /adm/errorhandler
  880: </Location>
  881: 
  882: <Location /adm/retrieve>
  883: AuthType LONCAPA
  884: Require valid-user
  885: PerlAuthzHandler       Apache::lonacc
  886: SetHandler perl-script
  887: PerlHandler Apache::lonretrieve
  888: ErrorDocument     403 /adm/login
  889: ErrorDocument     404 /adm/notfound.html
  890: ErrorDocument     406 /adm/unauthorized
  891: ErrorDocument	  500 /adm/errorhandler
  892: </Location>
  893: 
  894: <Location /adm/cleanup>
  895: AuthType LONCAPA
  896: Require valid-user
  897: PerlAuthzHandler       Apache::lonacc
  898: SetHandler perl-script
  899: PerlHandler Apache::loncleanup
  900: ErrorDocument     403 /adm/login
  901: ErrorDocument     404 /adm/notfound.html
  902: ErrorDocument     406 /adm/unauthorized
  903: ErrorDocument	  500 /adm/errorhandler
  904: </Location>
  905: 
  906: <Location /adm/cfile>
  907: AuthType LONCAPA
  908: Require valid-user
  909: PerlAuthzHandler       Apache::lonacc
  910: SetHandler perl-script
  911: PerlHandler Apache::loncfile
  912: ErrorDocument     403 /adm/login
  913: ErrorDocument     404 /adm/notfound.html
  914: ErrorDocument     406 /adm/unauthorized
  915: ErrorDocument	  500 /adm/errorhandler
  916: </Location>
  917: 
  918: <Location /adm/diff>
  919: AuthType LONCAPA
  920: Require valid-user
  921: PerlAuthzHandler       Apache::lonacc
  922: SetHandler perl-script
  923: PerlHandler Apache::londiff
  924: ErrorDocument     403 /adm/login
  925: ErrorDocument     404 /adm/notfound.html
  926: ErrorDocument     406 /adm/unauthorized
  927: ErrorDocument	  500 /adm/errorhandler
  928: </Location>
  929: 
  930: <Location /adm/upload>
  931: AuthType LONCAPA
  932: Require valid-user
  933: PerlAuthzHandler       Apache::lonacc
  934: SetHandler perl-script
  935: PerlHandler Apache::lonupload
  936: ErrorDocument     403 /adm/login
  937: ErrorDocument     404 /adm/notfound.html
  938: ErrorDocument     406 /adm/unauthorized
  939: ErrorDocument	  500 /adm/errorhandler
  940: </Location>
  941: 
  942: <Location /adm/imsimport>
  943: AuthType LONCAPA
  944: Require valid-user
  945: PerlAuthzHandler       Apache::lonacc
  946: SetHandler perl-script
  947: PerlHandler Apache::imsimport
  948: ErrorDocument     403 /adm/login
  949: ErrorDocument     404 /adm/notfound.html
  950: ErrorDocument     406 /adm/unauthorized
  951: ErrorDocument     500 /adm/errorhandler
  952: </Location>
  953: 
  954: <Location /adm/testbank>
  955: AuthType LONCAPA
  956: Require valid-user
  957: PerlAuthzHandler       Apache::lonacc
  958: SetHandler perl-script
  959: PerlHandler Apache::testbankimport
  960: ErrorDocument     403 /adm/login
  961: ErrorDocument     404 /adm/notfound.html
  962: ErrorDocument     406 /adm/unauthorized
  963: ErrorDocument     500 /adm/errorhandler
  964: </Location>
  965: 
  966: <Location /adm/assesscalc>
  967: AuthType LONCAPA
  968: Require valid-user
  969: PerlAuthzHandler       Apache::lonacc
  970: SetHandler perl-script
  971: PerlHandler Apache::lonspreadsheet
  972: ErrorDocument     403 /adm/login
  973: ErrorDocument     406 /adm/roles
  974: ErrorDocument     413 /adm/overloaded.txt
  975: ErrorDocument	  500 /adm/errorhandler
  976: </Location>
  977: 
  978: <Location /adm/studentcalc>
  979: AuthType LONCAPA
  980: Require valid-user
  981: PerlAuthzHandler       Apache::lonacc
  982: SetHandler perl-script
  983: PerlHandler Apache::lonspreadsheet
  984: ErrorDocument     403 /adm/login
  985: ErrorDocument     406 /adm/roles
  986: ErrorDocument     413 /adm/overloaded.txt
  987: ErrorDocument	  500 /adm/errorhandler
  988: </Location>
  989: 
  990: <Location /adm/classcalc>
  991: AuthType LONCAPA
  992: Require valid-user
  993: PerlAuthzHandler       Apache::lonacc
  994: SetHandler perl-script
  995: PerlHandler Apache::lonspreadsheet
  996: ErrorDocument     403 /adm/login
  997: ErrorDocument     406 /adm/roles
  998: ErrorDocument     413 /adm/overloaded.txt
  999: ErrorDocument	  500 /adm/errorhandler
 1000: </Location>
 1001: 
 1002: <Location /adm/dropadd>
 1003: AuthType LONCAPA
 1004: Require valid-user
 1005: PerlAuthzHandler       Apache::lonacc
 1006: SetHandler perl-script
 1007: PerlHandler Apache::londropadd
 1008: ErrorDocument     403 /adm/login
 1009: ErrorDocument     406 /adm/roles
 1010: ErrorDocument	  500 /adm/errorhandler
 1011: </Location>
 1012: 
 1013: <Location /adm/viewclasslist>
 1014: AuthType LONCAPA
 1015: Require valid-user
 1016: PerlAuthzHandler       Apache::lonacc
 1017: SetHandler perl-script
 1018: PerlHandler Apache::lonviewclasslist
 1019: ErrorDocument     403 /adm/login
 1020: ErrorDocument     406 /adm/roles
 1021: ErrorDocument	  500 /adm/errorhandler
 1022: </Location>
 1023: 
 1024: <Location /adm/coursegroups>
 1025: AuthType LONCAPA
 1026: Require valid-user
 1027: PerlAuthzHandler       Apache::lonacc
 1028: SetHandler perl-script
 1029: PerlHandler Apache::loncoursegroups
 1030: ErrorDocument     403 /adm/login
 1031: ErrorDocument     406 /adm/roles
 1032: ErrorDocument     500 /adm/errorhandler
 1033: </Location>
 1034: 
 1035: <Location /adm/groupboards>
 1036: AuthType LONCAPA
 1037: Require valid-user
 1038: PerlAuthzHandler       Apache::lonacc
 1039: SetHandler perl-script
 1040: PerlHandler Apache::groupboards
 1041: ErrorDocument     403 /adm/login
 1042: ErrorDocument     406 /adm/roles
 1043: ErrorDocument     500 /adm/errorhandler
 1044: </Location>
 1045: 
 1046: <Location /adm/grouproster>
 1047: AuthType LONCAPA
 1048: Require valid-user
 1049: PerlAuthzHandler       Apache::lonacc
 1050: SetHandler perl-script
 1051: PerlHandler Apache::grouproster
 1052: ErrorDocument     403 /adm/login
 1053: ErrorDocument     406 /adm/roles
 1054: ErrorDocument     500 /adm/errorhandler
 1055: </Location>
 1056: 
 1057: <Location /adm/whatsnew>
 1058: AuthType LONCAPA
 1059: Require valid-user
 1060: PerlAuthzHandler       Apache::lonacc
 1061: SetHandler perl-script
 1062: PerlHandler Apache::lonwhatsnew
 1063: ErrorDocument     403 /adm/login
 1064: ErrorDocument     406 /adm/roles
 1065: ErrorDocument     500 /adm/errorhandler
 1066: </Location>
 1067: 
 1068: <Location /adm/populate>
 1069: AuthType LONCAPA
 1070: Require valid-user
 1071: PerlAuthzHandler       Apache::lonacc
 1072: SetHandler perl-script
 1073: PerlHandler Apache::lonpopulate
 1074: ErrorDocument     403 /adm/login
 1075: ErrorDocument     406 /adm/roles
 1076: ErrorDocument     500 /adm/errorhandler
 1077: </Location>
 1078: 
 1079: <Location /adm/managekeys>
 1080: AuthType LONCAPA
 1081: Require valid-user
 1082: PerlAuthzHandler       Apache::lonacc
 1083: SetHandler perl-script
 1084: PerlHandler Apache::lonmanagekeys
 1085: ErrorDocument     403 /adm/login
 1086: ErrorDocument     406 /adm/roles
 1087: ErrorDocument	  500 /adm/errorhandler
 1088: </Location>
 1089: 
 1090: <Location /adm/printout>
 1091: AuthType LONCAPA
 1092: Require valid-user
 1093: PerlAuthzHandler       Apache::lonacc
 1094: SetHandler perl-script
 1095: PerlHandler Apache::lonprintout
 1096: ErrorDocument     403 /adm/login
 1097: ErrorDocument     413 /adm/overloaded.txt
 1098: ErrorDocument	  500 /adm/errorhandler
 1099: </Location>
 1100: 
 1101: <Location /adm/feedback>
 1102: AuthType LONCAPA
 1103: Require valid-user
 1104: PerlAuthzHandler       Apache::lonacc
 1105: SetHandler perl-script
 1106: PerlHandler Apache::lonfeedback
 1107: ErrorDocument     403 /adm/login
 1108: ErrorDocument	  500 /adm/errorhandler
 1109: </Location>
 1110: 
 1111: <Location /adm/coursedocs>
 1112: AuthType LONCAPA
 1113: Require valid-user
 1114: PerlAuthzHandler       Apache::lonacc
 1115: SetHandler perl-script
 1116: PerlHandler Apache::londocs
 1117: PerlCleanupHandler Apache::londocs::untiehash
 1118: PerlCleanupHandler	Apache::lonacc::cleanup
 1119: ErrorDocument     403 /adm/login
 1120: ErrorDocument	  500 /adm/errorhandler
 1121: </Location>
 1122: 
 1123: <Location /adm/imsimportdocs>
 1124: AuthType LONCAPA
 1125: Require valid-user
 1126: PerlAuthzHandler       Apache::lonacc
 1127: SetHandler perl-script
 1128: PerlHandler Apache::imsimportdocs
 1129: ErrorDocument     403 /adm/login
 1130: ErrorDocument     500 /adm/errorhandler
 1131: </Location>
 1132: 
 1133: <LocationMatch "^/adm/announcements">
 1134: AuthType LONCAPA
 1135: Require valid-user
 1136: PerlAuthzHandler       Apache::lonacc
 1137: SetHandler perl-script
 1138: PerlHandler Apache::lonannounce
 1139: ErrorDocument     403 /adm/login
 1140: ErrorDocument	  500 /adm/errorhandler
 1141: </LocationMatch>
 1142: 
 1143: <Location /adm/chat>
 1144: AuthType LONCAPA
 1145: Require valid-user
 1146: PerlAuthzHandler       Apache::lonacc
 1147: SetHandler perl-script
 1148: PerlHandler Apache::lonchat
 1149: ErrorDocument	  500 /adm/errorhandler
 1150: </Location>
 1151: 
 1152: <Location /adm/chatfetch>
 1153: AuthType LONCAPA
 1154: Require valid-user
 1155: PerlAuthzHandler       Apache::lonacc
 1156: SetHandler perl-script
 1157: PerlHandler Apache::lonchatfetch
 1158: ErrorDocument     413 /adm/overloaded.txt
 1159: ErrorDocument	  500 /adm/errorhandler
 1160: </Location>
 1161: 
 1162: <Location /adm/groupchat>
 1163: AuthType LONCAPA
 1164: Require valid-user
 1165: PerlAuthzHandler       Apache::lonacc
 1166: SetHandler perl-script
 1167: PerlHandler Apache::longroupchat
 1168: ErrorDocument     403 /adm/login
 1169: ErrorDocument     500 /adm/errorhandler
 1170: </Location>
 1171: 
 1172: <Location /adm/evaluate>
 1173: AuthType LONCAPA
 1174: Require valid-user
 1175: PerlAuthzHandler       Apache::lonacc
 1176: SetHandler perl-script
 1177: PerlHandler Apache::lonevaluate
 1178: ErrorDocument     403 /adm/login
 1179: ErrorDocument	  500 /adm/errorhandler
 1180: </Location>
 1181: 
 1182: <Location /adm/preferences>
 1183: AuthType LONCAPA
 1184: Require valid-user
 1185: PerlAuthzHandler       Apache::lonacc
 1186: SetHandler perl-script
 1187: PerlHandler Apache::lonpreferences
 1188: ErrorDocument     403 /adm/login
 1189: ErrorDocument	  500 /adm/errorhandler
 1190: </Location>
 1191: 
 1192: <Location /adm/communicate>
 1193: AuthType LONCAPA
 1194: Require valid-user
 1195: PerlAuthzHandler       Apache::lonacc
 1196: SetHandler perl-script
 1197: PerlHandler Apache::loncommunicate
 1198: ErrorDocument     403 /adm/login
 1199: ErrorDocument	  500 /adm/errorhandler
 1200: </Location>
 1201: 
 1202: <Location /adm/searchcat>
 1203: AuthType LONCAPA
 1204: Require valid-user
 1205: PerlAuthzHandler       Apache::lonacc
 1206: SetHandler perl-script
 1207: PerlHandler Apache::lonsearchcat
 1208: PerlCleanupHandler Apache::lonsearchcat::cleanup
 1209: PerlCleanupHandler	Apache::lonacc::cleanup
 1210: ErrorDocument     403 /adm/login
 1211: ErrorDocument     413 /adm/overloaded.txt
 1212: ErrorDocument	  500 /adm/errorhandler
 1213: </Location>
 1214: 
 1215: <Location /adm/navmaps>
 1216: AuthType LONCAPA
 1217: Require valid-user
 1218: PerlAuthzHandler       Apache::lonacc
 1219: SetHandler perl-script
 1220: PerlHandler Apache::lonnavdisplay
 1221: ErrorDocument     403 /adm/login
 1222: ErrorDocument     406 /adm/roles
 1223: ErrorDocument	  500 /adm/errorhandler
 1224: </Location>
 1225: 
 1226: <Location /adm/quickgrades>
 1227: AuthType LONCAPA
 1228: Require valid-user
 1229: PerlAuthzHandler       Apache::lonacc
 1230: SetHandler perl-script
 1231: PerlHandler Apache::lonquickgrades
 1232: ErrorDocument     403 /adm/login
 1233: ErrorDocument     406 /adm/roles
 1234: ErrorDocument     500 /adm/errorhandler
 1235: </Location>
 1236: 
 1237: <Location /adm/groupsort>
 1238: AuthType LONCAPA
 1239: Require valid-user
 1240: PerlAuthzHandler	Apache::lonacc
 1241: SetHandler perl-script
 1242: PerlHandler Apache::groupsort
 1243: PerlCleanupHandler Apache::groupsort::cleanup
 1244: PerlCleanupHandler	Apache::lonacc::cleanup
 1245: ErrorDocument     403 /adm/login
 1246: ErrorDocument	  500 /adm/errorhandler
 1247: </Location>
 1248: 
 1249: <Location /adm/wishlist>
 1250: AuthType LONCAPA
 1251: Require valid-user
 1252: PerlAuthzHandler       Apache::lonacc
 1253: SetHandler perl-script
 1254: PerlHandler Apache::lonwishlistdisplay
 1255: ErrorDocument     403 /adm/login
 1256: ErrorDocument     406 /adm/roles
 1257: ErrorDocument	  500 /adm/errorhandler
 1258: </Location>
 1259: 
 1260: <Location /adm/blockingstatus>
 1261: PerlAccessHandler      Apache::publiccheck
 1262: AuthType LONCAPA
 1263: Require valid-user
 1264: PerlAuthzHandler       Apache::lonacc
 1265: SetHandler             perl-script
 1266: PerlHandler            Apache::lonblockingstatus
 1267: </Location>
 1268: 
 1269: <Location /adm/errorhandler>
 1270: SetHandler perl-script
 1271: PerlHandler Apache::lonerrorhandler
 1272: </Location>
 1273: 
 1274: <LocationMatch "^/adm/help/.*\.hlp$">
 1275: AuthType LONCAPA
 1276: Require valid-user
 1277: PerlAccessHandler      Apache::publiccheck
 1278: PerlAuthzHandler	Apache::lonacc
 1279: SetHandler perl-script
 1280: PerlHandler Apache::lonhelp
 1281: ErrorDocument	  500 /adm/errorhandler
 1282: </LocationMatch>
 1283: 
 1284: <LocationMatch "^/adm/helpmenu">
 1285: AuthType LONCAPA
 1286: Require valid-user
 1287: PerlAuthzHandler       Apache::lonacc
 1288: SetHandler perl-script
 1289: PerlHandler Apache::lonhelpmenu
 1290: ErrorDocument	  500 /adm/errorhandler
 1291: </LocationMatch>
 1292: 
 1293: <LocationMatch "^/adm/support">
 1294: AuthType LONCAPA
 1295: Require valid-user
 1296: PerlAuthzHandler       Apache::lonacc
 1297: SetHandler perl-script
 1298: PerlHandler Apache::lonsupportreq
 1299: ErrorDocument	  500 /adm/errorhandler
 1300: </LocationMatch>
 1301: 
 1302: <LocationMatch "^/adm/helpdesk">
 1303: SetHandler perl-script
 1304: PerlHandler Apache::lonsupportreq
 1305: ErrorDocument	  500 /adm/errorhandler
 1306: </LocationMatch>
 1307: 
 1308: <LocationMatch "^/adm/css">
 1309: SetHandler perl-script
 1310: PerlHandler Apache::loncss
 1311: ErrorDocument	  500 /adm/errorhandler
 1312: </LocationMatch>
 1313: 
 1314: <LocationMatch "^/adm/coursecatalog">
 1315: SetHandler perl-script
 1316: PerlHandler Apache::coursecatalog
 1317: ErrorDocument	  500 /adm/errorhandler
 1318: </LocationMatch>
 1319: 
 1320: <LocationMatch "^/adm/resetpw">
 1321: SetHandler perl-script
 1322: PerlHandler Apache::resetpw
 1323: ErrorDocument     500 /adm/errorhandler
 1324: </LocationMatch>
 1325: 
 1326: <LocationMatch "^/adm/selfenroll">
 1327: SetHandler perl-script
 1328: PerlHandler Apache::selfenroll
 1329: ErrorDocument     500 /adm/errorhandler
 1330: </LocationMatch>
 1331: 
 1332: <LocationMatch "^/adm/createaccount">
 1333: SetHandler perl-script
 1334: PerlHandler Apache::createaccount
 1335: ErrorDocument     500 /adm/errorhandler
 1336: </LocationMatch>
 1337: 
 1338: <LocationMatch "^/adm/dns">
 1339: SetHandler perl-script
 1340: PerlHandler Apache::londns
 1341: ErrorDocument     500 /adm/errorhandler
 1342: </LocationMatch>
 1343: 
 1344: # ------------------------------------------------- Backdoor Adm Tests/Programs
 1345: 
 1346: <Location /adm/test>
 1347: PerlAccessHandler Apache::lonstatusacc
 1348: SetHandler perl-script
 1349: PerlHandler Apache::lontest
 1350: </Location>
 1351: 
 1352: # ------------------------------------------------------- Shutting down a child
 1353: 
 1354: PerlChildExitHandler Apache::lonacc::goodbye
 1355: 
 1356: #
 1357: # LON-CAPA Section (extensions to access.conf permission configuration)
 1358: #
 1359: # =========================================================== Directory Options
 1360: 
 1361: # Start out with "no"
 1362: 
 1363: <Directory />
 1364: Options None
 1365: AllowOverride None
 1366: order deny,allow
 1367: deny from all
 1368: </Directory>
 1369: 
 1370: # Allow uploaded files to be served
 1371: 
 1372: <Directory "/home/httpd/lonUsers">
 1373: Options Includes FollowSymLinks
 1374: AllowOverride None
 1375: order allow,deny
 1376: allow from all
 1377: </Directory>
 1378:  
 1379: # Allow construction space files to be served
 1380: 
 1381: <Directory "/home/*/public_html/" >
 1382: Options Includes FollowSymLinks
 1383: AllowOverride
 1384: order allow,deny
 1385: allow from all
 1386: </Directory>
 1387: 
 1388: # Yes to symbolic links and server-side includes
 1389: 
 1390: <Directory /home/httpd/html>
 1391: Options Includes FollowSymLinks
 1392: AllowOverride None
 1393: order allow,deny
 1394: allow from all
 1395: </Directory>
 1396: 
 1397: # If it is in cgi-bin, then it can be executed as a CGI script.
 1398: 
 1399: <Directory /home/httpd/cgi-bin>
 1400: AllowOverride None
 1401: Options ExecCGI FollowSymLinks
 1402: order allow,deny
 1403: allow from all
 1404: </Directory>
 1405: 
 1406: # Allow serving of files in prtspool
 1407: 
 1408: <Directory "/home/httpd/prtspool/">
 1409: Options Includes FollowSymLinks
 1410: AllowOverride None
 1411: order allow,deny
 1412: allow from all
 1413: </Directory>
 1414: 
 1415: # Allow serving of files in zipspool
 1416: 
 1417: <Directory "/home/httpd/zipspool/">
 1418: Options Includes FollowSymLinks
 1419: AllowOverride None
 1420: order allow,deny
 1421: allow from all
 1422: </Directory>
 1423: 
 1424: # Allow serving of files in captchaspool
 1425: 
 1426: <Directory "/home/httpd/captchaspool/">
 1427: Options Includes FollowSymLinks
 1428: AllowOverride None
 1429: order allow,deny
 1430: allow from all
 1431: </Directory>
 1432: 
 1433: # ============================================================= Access Handlers
 1434: 
 1435: # ------------------------------------------------- Allow server-status reports
 1436: <Location /server-status>
 1437: PerlAccessHandler Apache::lonstatusacc
 1438: SetHandler server-status
 1439: </Location>
 1440: 
 1441: # ------------------------ Allow LON-CAPA "low-level" connection status reports
 1442: <LocationMatch "^/+lon-status/.*">
 1443: PerlAccessHandler Apache::lonstatusacc
 1444: ErrorDocument     406 /adm/roles
 1445: ErrorDocument     500 /adm/errorhandler
 1446: </LocationMatch>
 1447: 
 1448: # ------------------- Allow access to local system documentation from localhost
 1449: Alias /doc /usr/doc
 1450: <Directory /usr/doc>
 1451: order deny,allow
 1452: deny from all
 1453: allow from localhost
 1454: Options Indexes FollowSymLinks
 1455: </Directory>
 1456: 
 1457: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
 1458: # ====================================== Internal Settings / Perl Configuration
 1459: 
 1460: PerlSetVar	 lonVersion   '<!-- VERSION -->'
 1461: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
 1462: PerlSetVar       lonTabDir    /home/httpd/lonTabs
 1463: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 1464: PerlSetVar       lonIconsURL  /adm/lonIcons
 1465: PerlSetVar       londPort     5663
 1466: PerlSetVar       lonSysEMail  korte@lite.msu.edu
 1467: PerlSetVar       lonDaemons   /home/httpd/perl
 1468: PerlSetVar       lonLib       /home/httpd/lib
 1469: PerlSetVar       lonSockDir   /home/httpd/sockets
 1470: PerlSetVar       lonSockCreate   /home/httpd/sockets/common
 1471: PerlSetVar       lonDocRoot   /home/httpd/html
 1472: PerlSetVar       lonPrtDir    /home/httpd/prtspool
 1473: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
 1474: PerlSetVar       lonZipDir    /home/httpd/zipspool
 1475: PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 1476: PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 1477: PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 1478: # & separated list of : separated fields in order of
 1479: # - internal name to call it, 
 1480: # - regexp that it should match (done case-insensitively)
 1481: # - regexp that is should not match (done case-insensitively)
 1482: # - regexp that will pull out the version number into $1
 1483: # - a number that describes the minimum version that has mathml support
 1484: # - a number that describes the minimum number version that has unicode support
 1485: 
 1486: PerlSetVar       lonBrowsDet  explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:5&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&netscape:netscape:msie:netscape\/(\d+\.\d+):9999:7&netscape:netscape\/[7-9]:shouldnotmatch:netscape\/(\d+\.\d+):9999:7&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/([\d\.]+):9999:84
 1487: 
 1488: PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 1489: PerlSetVar       lonScansDir  /home/httpd/scantron
 1490: PerlSetVar       lonScriptTimeout 10
 1491: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
 1492: PerlSetVar	 FAQHost	http://help.lon-capa.org/
 1493: # -----------------------------------------------------------------------------
 1494: # NOTE: lonSqlAccess key is the password for the MySQL user
 1495: # www@localhost.  This value must always be "localhostkey".
 1496: # The only security risk occurs when somebody logs in as 'www' on your system
 1497: # (in which case you have much bigger problems than whether or not they
 1498: # can access the non-authoritative loncapa database on your machine).
 1499: 
 1500: PerlSetVar       lonSqlAccess   localhostkey
 1501: 
 1502: #----------------------------------------------------------------------------
 1503: #
 1504: #   Parameters used by secure lond/lonc
 1505: 
 1506: #
 1507: #   Secure lond/lonc require ssl certificate and private
 1508: #   key files to function correctly.  The certificate
 1509: #   files need not be terribly secure, but the private key files
 1510: #   should be set up so that only www (the lonc/lond effective user)
 1511: #   can read them.
 1512: # 
 1513: #   The definition below is the full path to the directory that
 1514: #   contains the certificate and key files:
 1515: 
 1516: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1517: 
 1518: #
 1519: #  Secure lond/lonc require two certificates and a private host key.
 1520: #  The certificates required are that of the lonCAPA certificate authority
 1521: #  and the certificate that authority issued to this host.
 1522: #  lonnetCertificateAuthority is the name of the file that contains the
 1523: #                            lonCAPA certificate authority's certificate.
 1524: #  lonnetCertificate is the name of the file that contains the certificate
 1525: #                    issued to the host by the certificate authority.
 1526: #  Both of these variables are names of files assumed to be in 
 1527: #  lonCertificateDirectory:
 1528: 
 1529: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1530: PerlSetVar lonnetCertificate          lonhostcert.pem
 1531: 
 1532: #
 1533: #  To generate the request for a certificate, and to negotiate the
 1534: #  initial ssl connection, the host requires a private key.  This key
 1535: #  is created at lonCAPA install time.  Did we mention above that it
 1536: #  should be set so that only www can read it?  The variale below
 1537: #  is the name of the file relative to lonnetCertificateDirectory
 1538: #  that has the host's private key.  Did we remember to tell you to
 1539: #  keep the permissions on that file set to rw-------  (0600)?
 1540: #  
 1541: 
 1542: PerlSetVar lonnetPrivateKey         lonKey.pem
 1543: 
 1544: # Did we mention that the file described above must have
 1545: # permissions really locked down so that it can't be stolen?
 1546: 
 1547: #-------------------------------------------------------------------------
 1548: 
 1549: #   Parameters that define where all the ssl stuff is that's needed
 1550: #   to generate certificate requests and, on a system that's a CA
 1551: #   the certificate authority.
 1552: #    
 1553: #    SSLProgram    -> Path to the openssl command
 1554: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1555: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1556: #                     Authority.
 1557: #    SSLCAFile     -> Full path to the Certificate authority file 
 1558: #                    (on the cert manager system).
 1559: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1560: #    The following are good for the loncapa redhat installs and
 1561: #    the loncapa certificate authority system:
 1562: #
 1563: PerlSetVar SSLProgram	/usr/bin/openssl
 1564: PerlSetVar SSLDirectory /usr/share/ssl
 1565: PerlSetVar SSLCAConfig  loncapaca
 1566: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1567: PerlSetVar SSLEmail     certificate@lon-capa.org
 1568: 
 1569: #-------------------------------------------------------------------------
 1570: 
 1571: 
 1572: 
 1573: 
 1574: # ====================================== Include machine-specific configuration
 1575: 
 1576: Include conf/loncapa.conf
 1577: 
 1578: # ================================================= Include local configuration
 1579: 
 1580: Include conf/loncapa_apache_local*.conf
 1581: 
 1582: # ================================================== Initiate mod_perl starting
 1583: 
 1584: PerlRequire      conf/startup.pl
 1585: <IfDefine !MODPERL2>
 1586: PerlFreshRestart On
 1587: </IfDefine>

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