File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.177: download - view: text, annotated - select for diffs
Tue Jul 8 17:52:32 2008 UTC (15 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_7_0, version_2_6_99_1, version_2_6_99_0, HEAD
- Store captcha image and captcha code in lonCaptchaDir and lonCaptchaDb
   respectively.
- Entry in loncapafiles.lpml to create necessary directories during install.

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

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