File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.108: download - view: text, annotated - select for diffs
Fri Apr 22 21:03:52 2005 UTC (19 years ago) by albertel
Branches: MAIN
CVS tags: version_1_99_1_tmcc, HEAD
- need to stack the cleanup handlers since envv always needs cleaning now

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

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