File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.95: download - view: text, annotated - select for diffs
Wed Sep 15 20:08:34 2004 UTC (19 years, 7 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- disk based caching rises from the dead, this I think it's right thanks to mattthew
   - just remeber what items are to be saved to the disk cache and save them after done with the student
   - disable devalidatation for now, it's slo and doesn't gain us much
       (will add a cleansing pass to save_cache?)

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

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