File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.180: download - view: text, annotated - select for diffs
Tue Nov 4 21:06:21 2008 UTC (15 years, 6 months ago) by www
Branches: MAIN
CVS tags: HEAD
Eliminate lonhttpd on port 8080 due to increasing number of user and
institutional firewall issues

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

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