File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.90: download - view: text, annotated - select for diffs
Sat Jul 3 18:49:42 2004 UTC (19 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: version_1_2_X, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, HEAD
Integration of help icons in breadcrumb trail into a single icon. Click on icon to open new window with gateway to help options within frameset (or within main window if pop-ups blocked).  Help options include inline topic help, support request form, FAQ-o-matic, and bug reporting (all contextualized).  Option to collect form parameter information from page displaying help icon currently disabled.

Some work required:
lonsupportreq.pm - replace call to Mail::Send with more sophisticated CPAN module (e.g., Mail::Sender that allows specification of from: address and attachments.

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

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