File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.84: download - view: text, annotated - select for diffs
Tue Jun 15 16:33:09 2004 UTC (19 years, 11 months ago) by banghart
Branches: MAIN
CVS tags: HEAD

	Adding portfolio handler location match entries

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.84 2004/06/15 16:33:09 banghart 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: <IfDefine MODPERL2>
   47: PerlCleanupHandler	Apache::lonnet::cleanenv
   48: </IfDefine>
   49: 
   50: #PerlWarn On
   51: <LocationMatch "^/+res.*">
   52: PerlAccessHandler       Apache::lonacc
   53: PerlHeaderParserHandler Apache::lonrep
   54: ErrorDocument     403 /adm/login
   55: ErrorDocument     404 /adm/notfound.html
   56: ErrorDocument     406 /adm/roles
   57: ErrorDocument	  500 /adm/errorhandler
   58: </LocationMatch>
   59: 
   60: <LocationMatch "^/+enc.*">
   61: PerlAccessHandler       Apache::lonenc
   62: ErrorDocument     403 /adm/login
   63: ErrorDocument     404 /adm/notfound.html
   64: ErrorDocument     406 /adm/roles
   65: ErrorDocument	  500 /adm/errorhandler
   66: </LocationMatch>
   67: 
   68: <Location /adm/portfolio>
   69: PerlAccessHandler Apache::lonacc
   70: SetHandler perl-script
   71: PerlHandler Apache::portfolio
   72: </Location>
   73: 
   74: <LocationMatch "\.portfolio$">
   75: SetHandler perl-script
   76: PerlHandler Apache::portfolio
   77: </LocationMatch>
   78: 
   79: 
   80: 
   81: <LocationMatch "^/+userfiles.*">
   82: PerlAccessHandler       Apache::lontokacc
   83: PerlCleanupHandler	Apache::lontokacc::removefile
   84: </LocationMatch>
   85: 
   86: <LocationMatch "^/+uploaded.*">
   87: PerlAccessHandler	Apache::lonacc
   88: PerlHeaderParserHandler Apache::lonuploadrep
   89: ErrorDocument     403 /adm/login
   90: ErrorDocument     404 /adm/notfound.html
   91: ErrorDocument     406 /adm/roles
   92: ErrorDocument	  500 /adm/errorhandler
   93: </LocationMatch>
   94: 
   95: <LocationMatch "^/+uploaded/.*\.page$">
   96: SetHandler perl-script
   97: PerlHandler Apache::lonpage
   98: </LocationMatch>
   99: 
  100: <LocationMatch "^/+uploaded/.*\.sequence$">
  101: SetHandler perl-script
  102: PerlHandler Apache::lonsequence
  103: </LocationMatch>
  104: 
  105: <LocationMatch "^/+public/.*/syllabus$">
  106: PerlAccessHandler	Apache::lonacc
  107: SetHandler              perl-script
  108: PerlHandler             Apache::lonsyllabus
  109: ErrorDocument     404 /adm/notfound.html
  110: ErrorDocument	  500 /adm/errorhandler
  111: </LocationMatch>
  112: 
  113: <LocationMatch "^/adm/.*/aboutme$">
  114: PerlAccessHandler	Apache::lonacc
  115: SetHandler              perl-script
  116: PerlHandler             Apache::lonaboutme
  117: ErrorDocument     404 /adm/notfound.html
  118: ErrorDocument     406 /adm/notinit.html
  119: ErrorDocument	  500 /adm/errorhandler
  120: </LocationMatch>
  121: 
  122: <LocationMatch "^/adm/.*/smppg$">
  123: PerlAccessHandler	Apache::lonacc
  124: SetHandler              perl-script
  125: PerlHandler             Apache::lonsimplepage
  126: ErrorDocument     404 /adm/notfound.html
  127: ErrorDocument     406 /adm/notinit.html
  128: ErrorDocument	  500 /adm/errorhandler
  129: </LocationMatch>
  130: 
  131: <LocationMatch "^/adm/.*/bulletinboard$">
  132: PerlAccessHandler	Apache::lonacc
  133: SetHandler              perl-script
  134: PerlHandler             Apache::lonbulletin
  135: ErrorDocument     404 /adm/notfound.html
  136: ErrorDocument     406 /adm/notinit.html
  137: ErrorDocument	  500 /adm/errorhandler
  138: </LocationMatch>
  139: 
  140: <LocationMatch "\.problem/smpedit$">
  141: PerlAccessHandler	Apache::lonacc
  142: SetHandler              perl-script
  143: PerlHandler             Apache::lonsimpleproblemedit
  144: ErrorDocument     404 /adm/notfound.html
  145: ErrorDocument     406 /adm/notinit.html
  146: ErrorDocument	  500 /adm/errorhandler
  147: </LocationMatch>
  148: 
  149: <LocationMatch "^/+priv.*">
  150: PerlAccessHandler Apache::loncacc
  151: SetHandler        perl-script
  152: PerlHandler       Apache::lonconstruct
  153: ErrorDocument     403 /adm/login
  154: ErrorDocument     404 /adm/notfound.html
  155: ErrorDocument     406 /adm/unauthorized
  156: ErrorDocument	  500 /adm/errorhandler
  157: </LocationMatch>
  158: 
  159: <LocationMatch "^/+raw.*">
  160: PerlAccessHandler Apache::lonracc
  161: </LocationMatch>
  162: 
  163: <LocationMatch "^/+\~.*">
  164: PerlAccessHandler Apache::loncacc
  165: ErrorDocument     403 /adm/login
  166: ErrorDocument     404 /adm/notfound.html
  167: ErrorDocument     406 /adm/unauthorized
  168: ErrorDocument	  500 /adm/errorhandler
  169: AllowOverride None
  170: </LocationMatch>
  171: 
  172: <LocationMatch "^/adm/helper/.*\.helper$">
  173: PerlAccessHandler Apache::lonacc
  174: SetHandler        perl-script
  175: PerlHandler       Apache::lonhelper
  176: ErrorDocument     403 /adm/login
  177: ErrorDocument     404 /adm/notfound.html
  178: ErrorDocument     406 /adm/unauthorized
  179: ErrorDocument     500 /adm/errorhandler
  180: </LocationMatch>
  181: 
  182: <LocationMatch "/prtspool">
  183: PerlAccessHandler Apache::lonacc
  184: ErrorDocument     403 /adm/login
  185: ErrorDocument     404 /adm/notfound.html
  186: ErrorDocument     406 /adm/roles
  187: ErrorDocument	  500 /adm/errorhandler
  188: </LocationMatch>
  189: # ------------------------------------------------------------------------- RAT
  190: 
  191: <LocationMatch "^/\~.*\.sequence$">
  192: SetHandler perl-script
  193: PerlHandler Apache::lonratedt
  194: </LocationMatch>
  195: 
  196: <LocationMatch "^/\~.*\.page$">
  197: SetHandler perl-script
  198: PerlHandler Apache::lonratedt
  199: </LocationMatch>
  200: 
  201: <LocationMatch "^/\~.*\/ratserver$">
  202: SetHandler perl-script
  203: PerlHandler Apache::lonratsrv
  204: </LocationMatch>
  205: 
  206: <Location /adm/ratparms>
  207: PerlAccessHandler       Apache::lonacc
  208: SetHandler perl-script
  209: PerlHandler Apache::lonratparms
  210: ErrorDocument     403 /adm/login
  211: ErrorDocument	  500 /adm/errorhandler
  212: </Location>
  213: 
  214: # --------------------------------------------- Resource Space Content Handlers
  215: 
  216: <LocationMatch "^/+res.*/$">
  217: SetHandler perl-script
  218: PerlHandler Apache::lonindexer
  219: PerlCleanupHandler Apache::lonindexer::cleanup
  220: </LocationMatch>
  221: 
  222: <LocationMatch "^/+(res|\~).*\.tex$">
  223: SetHandler perl-script
  224: PerlHandler Apache::lontex
  225: </LocationMatch>
  226: 
  227: <LocationMatch "^/+res/.*\.page$">
  228: SetHandler perl-script
  229: PerlHandler Apache::lonpage
  230: </LocationMatch>
  231: 
  232: <LocationMatch "^/+res/.*\.sequence$">
  233: SetHandler perl-script
  234: PerlHandler Apache::lonsequence
  235: </LocationMatch>
  236: 
  237: <LocationMatch "^/+(res|\~|public|uploaded|adm).*\.meta$">
  238: SetHandler perl-script
  239: PerlHandler Apache::lonmeta
  240: </LocationMatch>
  241: 
  242: <LocationMatch "^/adm/bombs/">
  243: SetHandler perl-script
  244: PerlAccessHandler Apache::lonacc
  245: PerlHandler Apache::lonmeta
  246: </LocationMatch>
  247: 
  248: 
  249: 
  250: <LocationMatch "^/+(res|\~).*\.rights$">
  251: SetHandler perl-script
  252: PerlHandler Apache::lonrights
  253: </LocationMatch>
  254: 
  255: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
  256: SetHandler perl-script
  257: PerlHandler Apache::londatecheck
  258: PerlHandler Apache::lonxml
  259: </LocationMatch>
  260: 
  261: <LocationMatch "^/+(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
  262: SetHandler perl-script
  263: PerlHandler Apache::lonhomework
  264: </LocationMatch>
  265: 
  266: <LocationMatch "^/adm/wrapper/">
  267: PerlAccessHandler       Apache::lonacc
  268: SetHandler perl-script
  269: PerlHandler Apache::lonwrapper
  270: ErrorDocument     403 /adm/login
  271: ErrorDocument	  500 /adm/errorhandler
  272: </LocationMatch>
  273: 
  274: <LocationMatch "^/adm/source/">
  275: PerlAccessHandler       Apache::lonacc
  276: SetHandler perl-script
  277: PerlHandler Apache::lonsource
  278: ErrorDocument     403 /adm/login
  279: ErrorDocument	  500 /adm/errorhandler
  280: </LocationMatch>
  281: 
  282: 
  283: <LocationMatch "^/adm/localize/">
  284: PerlAccessHandler       Apache::lonacc
  285: SetHandler perl-script
  286: PerlHandler Apache::lonlocal
  287: ErrorDocument     403 /adm/login
  288: ErrorDocument	  500 /adm/errorhandler
  289: </LocationMatch>
  290: 
  291: # -------------------------------------------------------------- Admin Programs
  292: 
  293: <Location /adm/randomlabel.png>
  294: PerlAccessHandler       Apache::lonacc
  295: SetHandler perl-script
  296: PerlHandler Apache::randomlylabel
  297: ErrorDocument     403 /adm/login
  298: ErrorDocument	  500 /adm/errorhandler
  299: </Location>
  300: 
  301: <Location /adm/imagechoice>
  302: PerlAccessHandler       Apache::lonacc
  303: SetHandler perl-script
  304: PerlHandler Apache::imagechoice
  305: ErrorDocument     403 /adm/login
  306: ErrorDocument	  500 /adm/errorhandler
  307: </Location>
  308: 
  309: <Location /adm/statistics>
  310: PerlAccessHandler       Apache::lonacc
  311: SetHandler perl-script
  312: PerlHandler Apache::lonstatistics
  313: ErrorDocument     403 /adm/login
  314: ErrorDocument     413 /adm/overloaded.txt
  315: ErrorDocument	  500 /adm/errorhandler
  316: </Location>
  317: 
  318: <Location /adm/roles>
  319: PerlAccessHandler       Apache::lonacc
  320: SetHandler perl-script
  321: PerlHandler Apache::lonroles
  322: ErrorDocument     403 /adm/login
  323: ErrorDocument	  500 /adm/errorhandler
  324: </Location>
  325: 
  326: <Location /adm/menu>
  327: PerlAccessHandler       Apache::lonacc
  328: SetHandler perl-script
  329: PerlHandler Apache::lonmenu
  330: ErrorDocument     403 /adm/login
  331: ErrorDocument	  500 /adm/errorhandler
  332: </Location>
  333: 
  334: <Location /adm/remote>
  335: PerlAccessHandler       Apache::lonacc
  336: SetHandler perl-script
  337: PerlHandler Apache::lonremote
  338: ErrorDocument     403 /adm/login
  339: ErrorDocument	  500 /adm/errorhandler
  340: </Location>
  341: 
  342: <Location /adm/pickstudent>
  343: PerlAccessHandler       Apache::lonacc
  344: SetHandler perl-script
  345: PerlHandler Apache::lonpickstudent
  346: ErrorDocument     403 /adm/login
  347: ErrorDocument	  500 /adm/errorhandler
  348: </Location>
  349: 
  350: <Location /adm/pickcourse>
  351: PerlAccessHandler       Apache::lonacc
  352: SetHandler perl-script
  353: PerlHandler Apache::lonpickcourse
  354: ErrorDocument     403 /adm/login
  355: ErrorDocument	  500 /adm/errorhandler
  356: </Location>
  357: 
  358: <Location /adm/pickcode>
  359: PerlAccessHandler       Apache::lonacc
  360: SetHandler perl-script
  361: PerlHandler Apache::lonpickcode
  362: ErrorDocument     403 /adm/login
  363: ErrorDocument	  500 /adm/errorhandler
  364: </Location>
  365: 
  366: <Location /adm/login>
  367: SetHandler perl-script
  368: PerlHandler Apache::lonlogin
  369: </Location>
  370: 
  371: <Location /adm/logout>
  372: PerlAccessHandler       Apache::lonacc
  373: SetHandler perl-script
  374: PerlHandler Apache::lonlogout
  375: ErrorDocument     403 /adm/login
  376: </Location>
  377: 
  378: <Location /adm/authenticate>
  379: SetHandler perl-script
  380: PerlHandler Apache::lonauth
  381: </Location>
  382: 
  383: <Location /adm/annotations>
  384: PerlAccessHandler       Apache::lonacc
  385: SetHandler perl-script
  386: PerlHandler Apache::admannotations
  387: ErrorDocument     403 /adm/login
  388: ErrorDocument	  500 /adm/errorhandler
  389: </Location>
  390: 
  391: <Location /adm/bookmarks>
  392: PerlAccessHandler       Apache::lonacc
  393: SetHandler perl-script
  394: PerlHandler Apache::admbookmarks
  395: ErrorDocument     403 /adm/login
  396: ErrorDocument	  500 /adm/errorhandler
  397: </Location>
  398: 
  399: <Location /adm/flip>
  400: PerlAccessHandler       Apache::lonacc
  401: SetHandler perl-script
  402: PerlHandler Apache::lonpageflip
  403: PerlCleanupHandler Apache::lonpageflip::cleanup
  404: ErrorDocument     406 /adm/roles
  405: ErrorDocument     403 /adm/login
  406: ErrorDocument	  500 /adm/errorhandler
  407: </Location>
  408: 
  409: <Location /adm/ambiguous>
  410: PerlAccessHandler       Apache::lonacc
  411: SetHandler perl-script
  412: PerlHandler Apache::lonambiguous
  413: PerlCleanupHandler Apache::lonambiguous::cleanup
  414: ErrorDocument     403 /adm/login
  415: ErrorDocument	  500 /adm/errorhandler
  416: </Location>
  417: 
  418: <Location /adm/email>
  419: PerlAccessHandler       Apache::lonacc
  420: SetHandler perl-script
  421: PerlHandler Apache::lonmsg
  422: ErrorDocument     403 /adm/login
  423: ErrorDocument	  500 /adm/errorhandler
  424: </Location>
  425: 
  426: <Location /adm/parmset>
  427: PerlAccessHandler       Apache::lonacc
  428: SetHandler perl-script
  429: PerlHandler Apache::lonparmset
  430: ErrorDocument     403 /adm/login
  431: ErrorDocument     406 /adm/roles
  432: ErrorDocument	  500 /adm/errorhandler
  433: </Location>
  434: 
  435: <Location /adm/wizard>
  436: PerlAccessHandler       Apache::lonacc
  437: SetHandler perl-script
  438: PerlHandler Apache::lonwizard
  439: ErrorDocument     403 /adm/login
  440: ErrorDocument     406 /adm/roles
  441: ErrorDocument	  500 /adm/errorhandler
  442: </Location>
  443: 
  444: <Location /adm/grades>
  445: PerlAccessHandler       Apache::lonacc
  446: SetHandler perl-script
  447: PerlHandler Apache::grades
  448: ErrorDocument     403 /adm/login
  449: ErrorDocument     406 /adm/roles
  450: ErrorDocument	  500 /adm/errorhandler
  451: </Location>
  452: 
  453: <Location /adm/createcourse>
  454: PerlAccessHandler       Apache::lonacc
  455: SetHandler perl-script
  456: PerlHandler Apache::loncreatecourse
  457: ErrorDocument     403 /adm/login
  458: ErrorDocument     406 /adm/roles
  459: ErrorDocument	  500 /adm/errorhandler
  460: </Location>
  461: 
  462: <Location /adm/modifycourse>
  463: PerlAccessHandler       Apache::lonacc
  464: SetHandler perl-script
  465: PerlHandler Apache::lonmodifycourse
  466: ErrorDocument     403 /adm/login
  467: ErrorDocument     406 /adm/roles
  468: ErrorDocument     500 /adm/errorhandler
  469: </Location>
  470: 
  471: <Location /adm/createuser>
  472: PerlAccessHandler       Apache::lonacc
  473: SetHandler perl-script
  474: PerlHandler Apache::loncreateuser
  475: ErrorDocument     403 /adm/login
  476: ErrorDocument     406 /adm/roles
  477: ErrorDocument	  500 /adm/errorhandler
  478: </Location>
  479: 
  480: <Location /adm/publish>
  481: PerlAccessHandler       Apache::lonacc
  482: SetHandler perl-script
  483: PerlHandler Apache::lonpublisher
  484: ErrorDocument     403 /adm/login
  485: ErrorDocument     404 /adm/notfound.html
  486: ErrorDocument     406 /adm/unauthorized
  487: ErrorDocument	  500 /adm/errorhandler
  488: </Location>
  489: 
  490: <LocationMatch "^/+\~.*/$">
  491: PerlAccessHandler       Apache::loncacc
  492: SetHandler perl-script
  493: PerlHandler Apache::lonpubdir
  494: ErrorDocument     403 /adm/login
  495: ErrorDocument     404 /adm/notfound.html
  496: ErrorDocument     406 /adm/unauthorized
  497: ErrorDocument	  500 /adm/errorhandler
  498: </LocationMatch>
  499: 
  500: <Location /adm/pubdir>
  501: PerlAccessHandler       Apache::lonacc
  502: SetHandler perl-script
  503: PerlHandler Apache::lonpubdir
  504: ErrorDocument     403 /adm/login
  505: ErrorDocument     404 /adm/notfound.html
  506: ErrorDocument     406 /adm/unauthorized
  507: ErrorDocument	  500 /adm/errorhandler
  508: </Location>
  509: 
  510: <Location /adm/unauthorized>
  511: PerlAccessHandler       Apache::lonacc
  512: SetHandler perl-script
  513: PerlHandler Apache::lonunauthorized
  514: ErrorDocument     403 /adm/login
  515: ErrorDocument     404 /adm/notfound.html
  516: ErrorDocument	  500 /adm/errorhandler
  517: </Location>
  518: 
  519: <Location /adm/retrieve>
  520: PerlAccessHandler       Apache::lonacc
  521: SetHandler perl-script
  522: PerlHandler Apache::lonretrieve
  523: ErrorDocument     403 /adm/login
  524: ErrorDocument     404 /adm/notfound.html
  525: ErrorDocument     406 /adm/unauthorized
  526: ErrorDocument	  500 /adm/errorhandler
  527: </Location>
  528: 
  529: <Location /adm/cfile>
  530: PerlAccessHandler       Apache::lonacc
  531: SetHandler perl-script
  532: PerlHandler Apache::loncfile
  533: ErrorDocument     403 /adm/login
  534: ErrorDocument     404 /adm/notfound.html
  535: ErrorDocument     406 /adm/unauthorized
  536: ErrorDocument	  500 /adm/errorhandler
  537: </Location>
  538: 
  539: <Location /adm/diff>
  540: PerlAccessHandler       Apache::lonacc
  541: SetHandler perl-script
  542: PerlHandler Apache::londiff
  543: ErrorDocument     403 /adm/login
  544: ErrorDocument     404 /adm/notfound.html
  545: ErrorDocument     406 /adm/unauthorized
  546: ErrorDocument	  500 /adm/errorhandler
  547: </Location>
  548: 
  549: <Location /adm/upload>
  550: PerlAccessHandler       Apache::lonacc
  551: SetHandler perl-script
  552: PerlHandler Apache::lonupload
  553: ErrorDocument     403 /adm/login
  554: ErrorDocument     404 /adm/notfound.html
  555: ErrorDocument     406 /adm/unauthorized
  556: ErrorDocument	  500 /adm/errorhandler
  557: </Location>
  558: 
  559: <Location /adm/imsimport>
  560: PerlAccessHandler       Apache::lonacc
  561: SetHandler perl-script
  562: PerlHandler Apache::imsimport
  563: ErrorDocument     403 /adm/login
  564: ErrorDocument     404 /adm/notfound.html
  565: ErrorDocument     406 /adm/unauthorized
  566: ErrorDocument     500 /adm/errorhandler
  567: </Location>
  568: 
  569: <Location /adm/testbank>
  570: PerlAccessHandler       Apache::lonacc
  571: SetHandler perl-script
  572: PerlHandler Apache::testbankimport
  573: ErrorDocument     403 /adm/login
  574: ErrorDocument     404 /adm/notfound.html
  575: ErrorDocument     406 /adm/unauthorized
  576: ErrorDocument     500 /adm/errorhandler
  577: </Location>
  578: 
  579: <Location /adm/assesscalc>
  580: PerlAccessHandler       Apache::lonacc
  581: SetHandler perl-script
  582: PerlHandler Apache::lonspreadsheet
  583: ErrorDocument     403 /adm/login
  584: ErrorDocument     406 /adm/roles
  585: ErrorDocument     413 /adm/overloaded.txt
  586: ErrorDocument	  500 /adm/errorhandler
  587: </Location>
  588: 
  589: <Location /adm/studentcalc>
  590: PerlAccessHandler       Apache::lonacc
  591: SetHandler perl-script
  592: PerlHandler Apache::lonspreadsheet
  593: ErrorDocument     403 /adm/login
  594: ErrorDocument     406 /adm/roles
  595: ErrorDocument     413 /adm/overloaded.txt
  596: ErrorDocument	  500 /adm/errorhandler
  597: </Location>
  598: 
  599: <Location /adm/classcalc>
  600: PerlAccessHandler       Apache::lonacc
  601: SetHandler perl-script
  602: PerlHandler Apache::lonspreadsheet
  603: ErrorDocument     403 /adm/login
  604: ErrorDocument     406 /adm/roles
  605: ErrorDocument     413 /adm/overloaded.txt
  606: ErrorDocument	  500 /adm/errorhandler
  607: </Location>
  608: 
  609: <Location /adm/dropadd>
  610: PerlAccessHandler       Apache::lonacc
  611: SetHandler perl-script
  612: PerlHandler Apache::londropadd
  613: ErrorDocument     403 /adm/login
  614: ErrorDocument     406 /adm/roles
  615: ErrorDocument	  500 /adm/errorhandler
  616: </Location>
  617: 
  618: <Location /adm/populate>
  619: PerlAccessHandler       Apache::lonacc
  620: SetHandler perl-script
  621: PerlHandler Apache::lonpopulate
  622: ErrorDocument     403 /adm/login
  623: ErrorDocument     406 /adm/roles
  624: ErrorDocument     500 /adm/errorhandler
  625: </Location>
  626: 
  627: <Location /adm/managekeys>
  628: PerlAccessHandler       Apache::lonacc
  629: SetHandler perl-script
  630: PerlHandler Apache::lonmanagekeys
  631: ErrorDocument     403 /adm/login
  632: ErrorDocument     406 /adm/roles
  633: ErrorDocument	  500 /adm/errorhandler
  634: </Location>
  635: 
  636: <Location /adm/printout>
  637: PerlAccessHandler       Apache::lonacc
  638: SetHandler perl-script
  639: PerlHandler Apache::lonprintout
  640: ErrorDocument     403 /adm/login
  641: ErrorDocument     413 /adm/overloaded.txt
  642: ErrorDocument	  500 /adm/errorhandler
  643: </Location>
  644: 
  645: <Location /adm/feedback>
  646: PerlAccessHandler       Apache::lonacc
  647: SetHandler perl-script
  648: PerlHandler Apache::lonfeedback
  649: ErrorDocument     403 /adm/login
  650: ErrorDocument	  500 /adm/errorhandler
  651: </Location>
  652: 
  653: <Location /adm/coursedocs>
  654: PerlAccessHandler       Apache::lonacc
  655: SetHandler perl-script
  656: PerlHandler Apache::londocs
  657:  PerlCleanupHandler Apache::londocs::untiehash
  658: ErrorDocument     403 /adm/login
  659: ErrorDocument	  500 /adm/errorhandler
  660: </Location>
  661: 
  662: <Location /adm/imsimportdocs>
  663: PerlAccessHandler       Apache::lonacc
  664: SetHandler perl-script
  665: PerlHandler Apache::imsimportdocs
  666: ErrorDocument     403 /adm/login
  667: ErrorDocument     500 /adm/errorhandler
  668: </Location>
  669: 
  670: <Location /adm/announcements>
  671: PerlAccessHandler       Apache::lonacc
  672: SetHandler perl-script
  673: PerlHandler Apache::lonannounce
  674: ErrorDocument     403 /adm/login
  675: ErrorDocument	  500 /adm/errorhandler
  676: </Location>
  677: 
  678: <Location /adm/chat>
  679: PerlAccessHandler       Apache::lonacc
  680: SetHandler perl-script
  681: PerlHandler Apache::lonchat
  682: ErrorDocument	  500 /adm/errorhandler
  683: </Location>
  684: 
  685: <Location /adm/chatfetch>
  686: PerlAccessHandler       Apache::lonacc
  687: SetHandler perl-script
  688: PerlHandler Apache::lonchatfetch
  689: ErrorDocument     413 /adm/overloaded.txt
  690: ErrorDocument	  500 /adm/errorhandler
  691: </Location>
  692: 
  693: <Location /adm/evaluate>
  694: PerlAccessHandler       Apache::lonacc
  695: SetHandler perl-script
  696: PerlHandler Apache::lonevaluate
  697: ErrorDocument     403 /adm/login
  698: ErrorDocument	  500 /adm/errorhandler
  699: </Location>
  700: 
  701: <Location /adm/preferences>
  702: PerlAccessHandler       Apache::lonacc
  703: SetHandler perl-script
  704: PerlHandler Apache::lonpreferences
  705: ErrorDocument     403 /adm/login
  706: ErrorDocument	  500 /adm/errorhandler
  707: </Location>
  708: 
  709: <Location /adm/assignments>
  710: PerlAccessHandler       Apache::lonacc
  711: SetHandler perl-script
  712: PerlHandler Apache::lonassignments
  713: ErrorDocument     403 /adm/login
  714: ErrorDocument     406 /adm/roles
  715: ErrorDocument	  500 /adm/errorhandler
  716: </Location>
  717: 
  718: <Location /adm/communicate>
  719: PerlAccessHandler       Apache::lonacc
  720: SetHandler perl-script
  721: PerlHandler Apache::loncommunicate
  722: ErrorDocument     403 /adm/login
  723: ErrorDocument	  500 /adm/errorhandler
  724: </Location>
  725: 
  726: <Location /adm/searchcat>
  727: PerlAccessHandler       Apache::lonacc
  728: SetHandler perl-script
  729: PerlHandler Apache::lonsearchcat
  730: PerlCleanupHandler Apache::lonsearchcat::cleanup
  731: ErrorDocument     403 /adm/login
  732: ErrorDocument     413 /adm/overloaded.txt
  733: ErrorDocument	  500 /adm/errorhandler
  734: </Location>
  735: 
  736: <Location /adm/navmaps>
  737: PerlAccessHandler       Apache::lonacc
  738: SetHandler perl-script
  739: PerlHandler Apache::lonnavmaps
  740: ErrorDocument     403 /adm/login
  741: ErrorDocument     406 /adm/roles
  742: ErrorDocument	  500 /adm/errorhandler
  743: </Location>
  744: 
  745: <Location /adm/quickgrades>
  746: PerlAccessHandler       Apache::lonacc
  747: SetHandler perl-script
  748: PerlHandler Apache::lonquickgrades
  749: ErrorDocument     403 /adm/login
  750: ErrorDocument     406 /adm/roles
  751: ErrorDocument     500 /adm/errorhandler
  752: </Location>
  753: 
  754: <Location /adm/groupsort>
  755: PerlAccessHandler	Apache::lonacc
  756: SetHandler perl-script
  757: PerlHandler Apache::groupsort
  758: PerlCleanupHandler Apache::groupsort::cleanup
  759: ErrorDocument     403 /adm/login
  760: ErrorDocument	  500 /adm/errorhandler
  761: </Location>
  762: 
  763: <Location /adm/errorhandler>
  764: SetHandler perl-script
  765: PerlHandler Apache::lonerrorhandler
  766: </Location>
  767: 
  768: <LocationMatch "^/adm/help/.*\.hlp$">
  769: PerlAccessHandler	Apache::lonacc
  770: SetHandler perl-script
  771: PerlHandler Apache::lonhelp
  772: </LocationMatch>
  773: 
  774: # ------------------------------------------------- Backdoor Adm Tests/Programs
  775: 
  776: <Location /cgi-bin/loncron.pl>
  777: AuthName "LON-CAPA Network Administration"
  778: AuthType Basic
  779: AuthUserFile /home/httpd/lonTabs/htpasswd
  780: require user lonadm
  781: </Location>
  782: 
  783: <Location /cgi-bin/userstatus.pl>
  784: AuthName "LON-CAPA Network Administration"
  785: AuthType Basic
  786: AuthUserFile /home/httpd/lonTabs/htpasswd
  787: require user lonadm
  788: </Location>
  789: 
  790: <Location /cgi-bin/lonversions.pl>
  791: AuthName "LON-CAPA Network Administration"
  792: AuthType Basic
  793: AuthUserFile /home/httpd/lonTabs/htpasswd
  794: require user lonadm
  795: </Location>
  796: 
  797: <Location /cgi-bin/clusterstatus.pl>
  798: AuthName "LON-CAPA Network Administration"
  799: AuthType Basic
  800: AuthUserFile /home/httpd/lonTabs/htpasswd
  801: require user lonadm
  802: </Location>
  803: 
  804: <Location /cgi-bin/metadata_keywords.pl>
  805: AuthName "LON-CAPA Network Administration"
  806: AuthType Basic
  807: AuthUserFile /home/httpd/lonTabs/htpasswd
  808: require user lonadm
  809: </Location>
  810: 
  811: <Location /cgi-bin/metadata_harvest.pl>
  812: AuthName "harvest"
  813: AuthType Basic
  814: AuthUserFile /home/httpd/lonTabs/htpasswd
  815: require user  reaper
  816: </Location>
  817: 
  818: <Location /cgi-bin/takeoffline.pl>
  819: AuthName "Offline"
  820: AuthType Basic
  821: AuthUserFile /home/httpd/lonTabs/htpasswd
  822: require user  offline
  823: </Location>
  824: 
  825: <Location /cgi-bin/takeonline.pl>
  826: AuthName "Offline"
  827: AuthType Basic
  828: AuthUserFile /home/httpd/lonTabs/htpasswd
  829: require user  offline
  830: </Location>
  831: 
  832: <Location /adm/test>
  833: AuthName "LON-CAPA Network Administration"
  834: AuthType Basic
  835: AuthUserFile /home/httpd/lonTabs/htpasswd
  836: require user lonadm
  837: SetHandler perl-script
  838: PerlAccessHandler Apache::lonacc
  839: PerlHandler Apache::lontest
  840: </Location>
  841: 
  842: # ------------------------------------------------------- Shutting down a child
  843: 
  844: PerlChildExitHandler Apache::lonnet::goodbye
  845: 
  846: #
  847: # LON-CAPA Section (extensions to access.conf permission configuration)
  848: #
  849: # =========================================================== Directory Options
  850: 
  851: # Start out with "no"
  852: 
  853: <Directory />
  854: Options None
  855: AllowOverride None
  856: </Directory>
  857: 
  858: # Yes to symbolic links and server-side includes
  859: 
  860: <Directory /home/httpd/html>
  861: Options Includes FollowSymLinks
  862: AllowOverride None
  863: order allow,deny
  864: allow from all
  865: </Directory>
  866: 
  867: # If it is in cgi-bin, then it can be executed as a CGI script.
  868: 
  869: <Directory /home/httpd/cgi-bin>
  870: AllowOverride None
  871: Options ExecCGI
  872: </Directory>
  873: 
  874: # ============================================================= Access Handlers
  875: 
  876: # ------------------------------------------------- Allow server-status reports
  877: <Location /server-status>
  878: SetHandler server-status
  879: AuthName "LON-CAPA Network Administration"
  880: AuthType Basic
  881: AuthUserFile /home/httpd/lonTabs/htpasswd
  882: require user lonadm
  883: </Location>
  884: 
  885: # ------------------------ Allow LON-CAPA "low-level" connection status reports
  886: <Location /lon-status>
  887: AuthName "LON-CAPA Network Administration"
  888: AuthType Basic
  889: AuthUserFile /home/httpd/lonTabs/htpasswd
  890: require user lonadm
  891: </Location>
  892: 
  893: # ------------------- Allow access to local system documentation from localhost
  894: Alias /doc /usr/doc
  895: <Directory /usr/doc>
  896: order deny,allow
  897: deny from all
  898: allow from localhost
  899: Options Indexes FollowSymLinks
  900: </Directory>
  901: 
  902: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  903: # ====================================== Internal Settings / Perl Configuration
  904: 
  905: PerlSetVar	 lonVersion   '<!-- VERSION -->'
  906: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  907: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  908: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  909: PerlSetVar       lonIconsURL  /adm/lonIcons
  910: PerlSetVar       londPort     5663
  911: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  912: PerlSetVar       lonDaemons   /home/httpd/perl
  913: PerlSetVar       lonSockDir   /home/httpd/sockets
  914: PerlSetVar       lonDocRoot   /home/httpd/html
  915: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  916: PerlSetVar       lonBrowsDet  netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1
  917: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  918: PerlSetVar       lonScansDir  /home/httpd/scantron
  919: PerlSetVar       lonScriptTimeout 10
  920: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
  921: PerlSetVar	 FAQHost	http://help.lon-capa.org/
  922: # -----------------------------------------------------------------------------
  923: # NOTE: lonSqlAccess key is the password for the MySQL user
  924: # www@localhost.  This value must always be "localhostkey".
  925: # The only security risk occurs when somebody logs in as 'www' on your system
  926: # (in which case you have much bigger problems than whether or not they
  927: # can access the non-authoritative loncapa database on your machine).
  928: 
  929: PerlSetVar       lonSqlAccess   localhostkey
  930: 
  931: # -----------------------------------------------------------------------------
  932: # lonttpdPort is the port used by the lightweight graphics httpd server
  933: # not the main Apache server
  934: PerlSetVar       lonhttpdPort  8080
  935: 
  936: 
  937: #   Parameters used by secure lond/lonc
  938: 
  939: #
  940: #   Secure lond/lonc require ssl certificate and private
  941: #   key files to function correctly.  The certificate
  942: #   files need not be terribly secure, but the private key files
  943: #   should be set up so that only www (the lonc/lond effective user)
  944: #   can read them.
  945: # 
  946: #   The definition below is the full path to the directory that
  947: #   contains the certificate and key files:
  948: 
  949: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
  950: 
  951: #
  952: #  Secure lond/lonc require two certificates and a private host key.
  953: #  The certificates required are that of the lonCAPA certificate authority
  954: #  and the certificate that authority issued to this host.
  955: #  lonnetCertificateAuthority is the name of the file that contains the
  956: #                            lonCAPA certificate authority's certificate.
  957: #  lonnetCertificate is the name of the file that contains the certificate
  958: #                    issued to the host by the certificate authority.
  959: #  Both of these variables are names of files assumed to be in 
  960: #  lonCertificateDirectory:
  961: 
  962: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
  963: PerlSetVar lonnetCertificate          lonhostcert.pem
  964: 
  965: #
  966: #  To generate the request for a certificate, and to negotiate the
  967: #  initial ssl connection, the host requires a private key.  This key
  968: #  is created at lonCAPA install time.  Did we mention above that it
  969: #  should be set so that only www can read it?  The variale below
  970: #  is the name of the file relative to lonnetCertificateDirectory
  971: #  that has the host's private key.  Did we remember to tell you to
  972: #  keep the permissions on that file set to rw-------  (0600)?
  973: #  
  974: 
  975: PerlSetVar lonnetPrivateKey         lonKey.pem
  976: 
  977: # Did we mention that the file described above must have
  978: # permissions really locked down so that it can't be stolen?
  979: 
  980: 
  981: 
  982: 
  983: # ====================================== Include machine-specific configuration
  984: 
  985: Include conf/loncapa.conf
  986: 
  987: # ================================================= Include local configuration
  988: 
  989: Include conf/loncapa_apache_local*.conf
  990: 
  991: # ================================================== Initiate mod_perl starting
  992: 
  993: PerlRequire      conf/startup.pl
  994: <IfDefine !MODPERL2>
  995: PerlFreshRestart On
  996: </IfDefine>

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