File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.176: download - view: text, annotated - select for diffs
Mon May 19 17:15:13 2008 UTC (16 years ago) by raeburn
Branches: MAIN
CVS tags: HEAD
 Directive for lonpickauthor.pm

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

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