File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.80: download - view: text, annotated - select for diffs
Mon May 31 14:55:18 2004 UTC (19 years, 11 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- add in missiong error handlers

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

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