File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.169: download - view: text, annotated - select for diffs
Mon Jul 30 22:01:58 2007 UTC (16 years, 8 months ago) by albertel
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_99_0, HEAD
- emove accidental changes to browser detection

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

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