File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.115: download - view: text, annotated - select for diffs
Wed Sep 21 13:40:05 2005 UTC (18 years, 7 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_0_X, version_2_0_2, HEAD
internal_redirect() in lonenc needs to be called by Content Handler, not Access Handler, otherwise Apache on SuSE will not reliably serve embedded objects.

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

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