File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.163: download - view: text, annotated - select for diffs
Thu Mar 1 18:04:27 2007 UTC (17 years, 2 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Add directive for domainprefs

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

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