File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.91: download - view: text, annotated - select for diffs
Thu Jul 22 23:50:55 2004 UTC (19 years, 10 months ago) by www
Branches: MAIN
CVS tags: HEAD
Set languages - requires German (de) and Portuguese (pt) dictionaries installed

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.91 2004/07/22 23:50:55 www 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/spellcheck>
  393: PerlAccessHandler       Apache::lonacc
  394: SetHandler perl-script
  395: PerlHandler Apache::lonspeller
  396: ErrorDocument     403 /adm/login
  397: ErrorDocument	  500 /adm/errorhandler
  398: </Location>
  399: 
  400: <Location /adm/bookmarks>
  401: PerlAccessHandler       Apache::lonacc
  402: SetHandler perl-script
  403: PerlHandler Apache::admbookmarks
  404: ErrorDocument     403 /adm/login
  405: ErrorDocument	  500 /adm/errorhandler
  406: </Location>
  407: 
  408: <Location /adm/flip>
  409: PerlAccessHandler       Apache::lonacc
  410: SetHandler perl-script
  411: PerlHandler Apache::lonpageflip
  412: PerlCleanupHandler Apache::lonpageflip::cleanup
  413: ErrorDocument     406 /adm/roles
  414: ErrorDocument     403 /adm/login
  415: ErrorDocument	  500 /adm/errorhandler
  416: </Location>
  417: 
  418: <Location /adm/ambiguous>
  419: PerlAccessHandler       Apache::lonacc
  420: SetHandler perl-script
  421: PerlHandler Apache::lonambiguous
  422: PerlCleanupHandler Apache::lonambiguous::cleanup
  423: ErrorDocument     403 /adm/login
  424: ErrorDocument	  500 /adm/errorhandler
  425: </Location>
  426: 
  427: <Location /adm/email>
  428: PerlAccessHandler       Apache::lonacc
  429: SetHandler perl-script
  430: PerlHandler Apache::lonmsg
  431: ErrorDocument     403 /adm/login
  432: ErrorDocument	  500 /adm/errorhandler
  433: </Location>
  434: 
  435: <Location /adm/parmset>
  436: PerlAccessHandler       Apache::lonacc
  437: SetHandler perl-script
  438: PerlHandler Apache::lonparmset
  439: ErrorDocument     403 /adm/login
  440: ErrorDocument     406 /adm/roles
  441: ErrorDocument	  500 /adm/errorhandler
  442: </Location>
  443: 
  444: <Location /adm/wizard>
  445: PerlAccessHandler       Apache::lonacc
  446: SetHandler perl-script
  447: PerlHandler Apache::lonwizard
  448: ErrorDocument     403 /adm/login
  449: ErrorDocument     406 /adm/roles
  450: ErrorDocument	  500 /adm/errorhandler
  451: </Location>
  452: 
  453: <Location /adm/grades>
  454: PerlAccessHandler       Apache::lonacc
  455: SetHandler perl-script
  456: PerlHandler Apache::grades
  457: ErrorDocument     403 /adm/login
  458: ErrorDocument     406 /adm/roles
  459: ErrorDocument	  500 /adm/errorhandler
  460: </Location>
  461: 
  462: <Location /adm/createcourse>
  463: PerlAccessHandler       Apache::lonacc
  464: SetHandler perl-script
  465: PerlHandler Apache::loncreatecourse
  466: ErrorDocument     403 /adm/login
  467: ErrorDocument     406 /adm/roles
  468: ErrorDocument	  500 /adm/errorhandler
  469: </Location>
  470: 
  471: <Location /adm/modifycourse>
  472: PerlAccessHandler       Apache::lonacc
  473: SetHandler perl-script
  474: PerlHandler Apache::lonmodifycourse
  475: ErrorDocument     403 /adm/login
  476: ErrorDocument     406 /adm/roles
  477: ErrorDocument     500 /adm/errorhandler
  478: </Location>
  479: 
  480: <Location /adm/createuser>
  481: PerlAccessHandler       Apache::lonacc
  482: SetHandler perl-script
  483: PerlHandler Apache::loncreateuser
  484: ErrorDocument     403 /adm/login
  485: ErrorDocument     406 /adm/roles
  486: ErrorDocument	  500 /adm/errorhandler
  487: </Location>
  488: 
  489: <Location /adm/publish>
  490: PerlAccessHandler       Apache::lonacc
  491: SetHandler perl-script
  492: PerlHandler Apache::lonpublisher
  493: ErrorDocument     403 /adm/login
  494: ErrorDocument     404 /adm/notfound.html
  495: ErrorDocument     406 /adm/unauthorized
  496: ErrorDocument	  500 /adm/errorhandler
  497: </Location>
  498: 
  499: <LocationMatch "^/+\~.*/$">
  500: PerlAccessHandler       Apache::loncacc
  501: SetHandler perl-script
  502: PerlHandler Apache::lonpubdir
  503: ErrorDocument     403 /adm/login
  504: ErrorDocument     404 /adm/notfound.html
  505: ErrorDocument     406 /adm/unauthorized
  506: ErrorDocument	  500 /adm/errorhandler
  507: </LocationMatch>
  508: 
  509: <Location /adm/pubdir>
  510: PerlAccessHandler       Apache::lonacc
  511: SetHandler perl-script
  512: PerlHandler Apache::lonpubdir
  513: ErrorDocument     403 /adm/login
  514: ErrorDocument     404 /adm/notfound.html
  515: ErrorDocument     406 /adm/unauthorized
  516: ErrorDocument	  500 /adm/errorhandler
  517: </Location>
  518: 
  519: <Location /adm/unauthorized>
  520: PerlAccessHandler       Apache::lonacc
  521: SetHandler perl-script
  522: PerlHandler Apache::lonunauthorized
  523: ErrorDocument     403 /adm/login
  524: ErrorDocument     404 /adm/notfound.html
  525: ErrorDocument	  500 /adm/errorhandler
  526: </Location>
  527: 
  528: <Location /adm/retrieve>
  529: PerlAccessHandler       Apache::lonacc
  530: SetHandler perl-script
  531: PerlHandler Apache::lonretrieve
  532: ErrorDocument     403 /adm/login
  533: ErrorDocument     404 /adm/notfound.html
  534: ErrorDocument     406 /adm/unauthorized
  535: ErrorDocument	  500 /adm/errorhandler
  536: </Location>
  537: 
  538: <Location /adm/cfile>
  539: PerlAccessHandler       Apache::lonacc
  540: SetHandler perl-script
  541: PerlHandler Apache::loncfile
  542: ErrorDocument     403 /adm/login
  543: ErrorDocument     404 /adm/notfound.html
  544: ErrorDocument     406 /adm/unauthorized
  545: ErrorDocument	  500 /adm/errorhandler
  546: </Location>
  547: 
  548: <Location /adm/diff>
  549: PerlAccessHandler       Apache::lonacc
  550: SetHandler perl-script
  551: PerlHandler Apache::londiff
  552: ErrorDocument     403 /adm/login
  553: ErrorDocument     404 /adm/notfound.html
  554: ErrorDocument     406 /adm/unauthorized
  555: ErrorDocument	  500 /adm/errorhandler
  556: </Location>
  557: 
  558: <Location /adm/upload>
  559: PerlAccessHandler       Apache::lonacc
  560: SetHandler perl-script
  561: PerlHandler Apache::lonupload
  562: ErrorDocument     403 /adm/login
  563: ErrorDocument     404 /adm/notfound.html
  564: ErrorDocument     406 /adm/unauthorized
  565: ErrorDocument	  500 /adm/errorhandler
  566: </Location>
  567: 
  568: <Location /adm/imsimport>
  569: PerlAccessHandler       Apache::lonacc
  570: SetHandler perl-script
  571: PerlHandler Apache::imsimport
  572: ErrorDocument     403 /adm/login
  573: ErrorDocument     404 /adm/notfound.html
  574: ErrorDocument     406 /adm/unauthorized
  575: ErrorDocument     500 /adm/errorhandler
  576: </Location>
  577: 
  578: <Location /adm/testbank>
  579: PerlAccessHandler       Apache::lonacc
  580: SetHandler perl-script
  581: PerlHandler Apache::testbankimport
  582: ErrorDocument     403 /adm/login
  583: ErrorDocument     404 /adm/notfound.html
  584: ErrorDocument     406 /adm/unauthorized
  585: ErrorDocument     500 /adm/errorhandler
  586: </Location>
  587: 
  588: <Location /adm/assesscalc>
  589: PerlAccessHandler       Apache::lonacc
  590: SetHandler perl-script
  591: PerlHandler Apache::lonspreadsheet
  592: ErrorDocument     403 /adm/login
  593: ErrorDocument     406 /adm/roles
  594: ErrorDocument     413 /adm/overloaded.txt
  595: ErrorDocument	  500 /adm/errorhandler
  596: </Location>
  597: 
  598: <Location /adm/studentcalc>
  599: PerlAccessHandler       Apache::lonacc
  600: SetHandler perl-script
  601: PerlHandler Apache::lonspreadsheet
  602: ErrorDocument     403 /adm/login
  603: ErrorDocument     406 /adm/roles
  604: ErrorDocument     413 /adm/overloaded.txt
  605: ErrorDocument	  500 /adm/errorhandler
  606: </Location>
  607: 
  608: <Location /adm/classcalc>
  609: PerlAccessHandler       Apache::lonacc
  610: SetHandler perl-script
  611: PerlHandler Apache::lonspreadsheet
  612: ErrorDocument     403 /adm/login
  613: ErrorDocument     406 /adm/roles
  614: ErrorDocument     413 /adm/overloaded.txt
  615: ErrorDocument	  500 /adm/errorhandler
  616: </Location>
  617: 
  618: <Location /adm/dropadd>
  619: PerlAccessHandler       Apache::lonacc
  620: SetHandler perl-script
  621: PerlHandler Apache::londropadd
  622: ErrorDocument     403 /adm/login
  623: ErrorDocument     406 /adm/roles
  624: ErrorDocument	  500 /adm/errorhandler
  625: </Location>
  626: 
  627: <Location /adm/populate>
  628: PerlAccessHandler       Apache::lonacc
  629: SetHandler perl-script
  630: PerlHandler Apache::lonpopulate
  631: ErrorDocument     403 /adm/login
  632: ErrorDocument     406 /adm/roles
  633: ErrorDocument     500 /adm/errorhandler
  634: </Location>
  635: 
  636: <Location /adm/managekeys>
  637: PerlAccessHandler       Apache::lonacc
  638: SetHandler perl-script
  639: PerlHandler Apache::lonmanagekeys
  640: ErrorDocument     403 /adm/login
  641: ErrorDocument     406 /adm/roles
  642: ErrorDocument	  500 /adm/errorhandler
  643: </Location>
  644: 
  645: <Location /adm/printout>
  646: PerlAccessHandler       Apache::lonacc
  647: SetHandler perl-script
  648: PerlHandler Apache::lonprintout
  649: ErrorDocument     403 /adm/login
  650: ErrorDocument     413 /adm/overloaded.txt
  651: ErrorDocument	  500 /adm/errorhandler
  652: </Location>
  653: 
  654: <Location /adm/feedback>
  655: PerlAccessHandler       Apache::lonacc
  656: SetHandler perl-script
  657: PerlHandler Apache::lonfeedback
  658: ErrorDocument     403 /adm/login
  659: ErrorDocument	  500 /adm/errorhandler
  660: </Location>
  661: 
  662: <Location /adm/coursedocs>
  663: PerlAccessHandler       Apache::lonacc
  664: SetHandler perl-script
  665: PerlHandler Apache::londocs
  666:  PerlCleanupHandler Apache::londocs::untiehash
  667: ErrorDocument     403 /adm/login
  668: ErrorDocument	  500 /adm/errorhandler
  669: </Location>
  670: 
  671: <Location /adm/imsimportdocs>
  672: PerlAccessHandler       Apache::lonacc
  673: SetHandler perl-script
  674: PerlHandler Apache::imsimportdocs
  675: ErrorDocument     403 /adm/login
  676: ErrorDocument     500 /adm/errorhandler
  677: </Location>
  678: 
  679: <Location /adm/announcements>
  680: PerlAccessHandler       Apache::lonacc
  681: SetHandler perl-script
  682: PerlHandler Apache::lonannounce
  683: ErrorDocument     403 /adm/login
  684: ErrorDocument	  500 /adm/errorhandler
  685: </Location>
  686: 
  687: <Location /adm/chat>
  688: PerlAccessHandler       Apache::lonacc
  689: SetHandler perl-script
  690: PerlHandler Apache::lonchat
  691: ErrorDocument	  500 /adm/errorhandler
  692: </Location>
  693: 
  694: <Location /adm/chatfetch>
  695: PerlAccessHandler       Apache::lonacc
  696: SetHandler perl-script
  697: PerlHandler Apache::lonchatfetch
  698: ErrorDocument     413 /adm/overloaded.txt
  699: ErrorDocument	  500 /adm/errorhandler
  700: </Location>
  701: 
  702: <Location /adm/evaluate>
  703: PerlAccessHandler       Apache::lonacc
  704: SetHandler perl-script
  705: PerlHandler Apache::lonevaluate
  706: ErrorDocument     403 /adm/login
  707: ErrorDocument	  500 /adm/errorhandler
  708: </Location>
  709: 
  710: <Location /adm/preferences>
  711: PerlAccessHandler       Apache::lonacc
  712: SetHandler perl-script
  713: PerlHandler Apache::lonpreferences
  714: ErrorDocument     403 /adm/login
  715: ErrorDocument	  500 /adm/errorhandler
  716: </Location>
  717: 
  718: <Location /adm/assignments>
  719: PerlAccessHandler       Apache::lonacc
  720: SetHandler perl-script
  721: PerlHandler Apache::lonassignments
  722: ErrorDocument     403 /adm/login
  723: ErrorDocument     406 /adm/roles
  724: ErrorDocument	  500 /adm/errorhandler
  725: </Location>
  726: 
  727: <Location /adm/communicate>
  728: PerlAccessHandler       Apache::lonacc
  729: SetHandler perl-script
  730: PerlHandler Apache::loncommunicate
  731: ErrorDocument     403 /adm/login
  732: ErrorDocument	  500 /adm/errorhandler
  733: </Location>
  734: 
  735: <Location /adm/searchcat>
  736: PerlAccessHandler       Apache::lonacc
  737: SetHandler perl-script
  738: PerlHandler Apache::lonsearchcat
  739: PerlCleanupHandler Apache::lonsearchcat::cleanup
  740: ErrorDocument     403 /adm/login
  741: ErrorDocument     413 /adm/overloaded.txt
  742: ErrorDocument	  500 /adm/errorhandler
  743: </Location>
  744: 
  745: <Location /adm/navmaps>
  746: PerlAccessHandler       Apache::lonacc
  747: SetHandler perl-script
  748: PerlHandler Apache::lonnavmaps
  749: ErrorDocument     403 /adm/login
  750: ErrorDocument     406 /adm/roles
  751: ErrorDocument	  500 /adm/errorhandler
  752: </Location>
  753: 
  754: <Location /adm/quickgrades>
  755: PerlAccessHandler       Apache::lonacc
  756: SetHandler perl-script
  757: PerlHandler Apache::lonquickgrades
  758: ErrorDocument     403 /adm/login
  759: ErrorDocument     406 /adm/roles
  760: ErrorDocument     500 /adm/errorhandler
  761: </Location>
  762: 
  763: <Location /adm/groupsort>
  764: PerlAccessHandler	Apache::lonacc
  765: SetHandler perl-script
  766: PerlHandler Apache::groupsort
  767: PerlCleanupHandler Apache::groupsort::cleanup
  768: ErrorDocument     403 /adm/login
  769: ErrorDocument	  500 /adm/errorhandler
  770: </Location>
  771: 
  772: <Location /adm/errorhandler>
  773: SetHandler perl-script
  774: PerlHandler Apache::lonerrorhandler
  775: </Location>
  776: 
  777: <LocationMatch "^/adm/help/.*\.hlp$">
  778: PerlAccessHandler	Apache::lonacc
  779: SetHandler perl-script
  780: PerlHandler Apache::lonhelp
  781: </LocationMatch>
  782: 
  783: <LocationMatch "^/adm/helpmenu">
  784: PerlAccessHandler       Apache::lonacc
  785: SetHandler perl-script
  786: PerlHandler Apache::lonhelpmenu
  787: </LocationMatch>
  788: 
  789: <LocationMatch "^/adm/support">
  790: PerlAccessHandler       Apache::lonacc
  791: SetHandler perl-script
  792: PerlHandler Apache::lonsupportreq
  793: </LocationMatch>
  794: 
  795: # ------------------------------------------------- Backdoor Adm Tests/Programs
  796: 
  797: <Location /cgi-bin/loncron.pl>
  798: AuthName "LON-CAPA Network Administration"
  799: AuthType Basic
  800: AuthUserFile /home/httpd/lonTabs/htpasswd
  801: require user lonadm
  802: </Location>
  803: 
  804: <Location /cgi-bin/userstatus.pl>
  805: AuthName "LON-CAPA Network Administration"
  806: AuthType Basic
  807: AuthUserFile /home/httpd/lonTabs/htpasswd
  808: require user lonadm
  809: </Location>
  810: 
  811: <Location /cgi-bin/lonversions.pl>
  812: AuthName "LON-CAPA Network Administration"
  813: AuthType Basic
  814: AuthUserFile /home/httpd/lonTabs/htpasswd
  815: require user lonadm
  816: </Location>
  817: 
  818: <Location /cgi-bin/clusterstatus.pl>
  819: AuthName "LON-CAPA Network Administration"
  820: AuthType Basic
  821: AuthUserFile /home/httpd/lonTabs/htpasswd
  822: require user lonadm
  823: </Location>
  824: 
  825: <Location /cgi-bin/metadata_keywords.pl>
  826: AuthName "LON-CAPA Network Administration"
  827: AuthType Basic
  828: AuthUserFile /home/httpd/lonTabs/htpasswd
  829: require user lonadm
  830: </Location>
  831: 
  832: <Location /cgi-bin/metadata_harvest.pl>
  833: AuthName "harvest"
  834: AuthType Basic
  835: AuthUserFile /home/httpd/lonTabs/htpasswd
  836: require user  reaper
  837: </Location>
  838: 
  839: <Location /cgi-bin/takeoffline.pl>
  840: AuthName "Offline"
  841: AuthType Basic
  842: AuthUserFile /home/httpd/lonTabs/htpasswd
  843: require user  offline
  844: </Location>
  845: 
  846: <Location /cgi-bin/takeonline.pl>
  847: AuthName "Offline"
  848: AuthType Basic
  849: AuthUserFile /home/httpd/lonTabs/htpasswd
  850: require user  offline
  851: </Location>
  852: 
  853: <Location /adm/test>
  854: AuthName "LON-CAPA Network Administration"
  855: AuthType Basic
  856: AuthUserFile /home/httpd/lonTabs/htpasswd
  857: require user lonadm
  858: SetHandler perl-script
  859: PerlAccessHandler Apache::lonacc
  860: PerlHandler Apache::lontest
  861: </Location>
  862: 
  863: # ------------------------------------------------------- Shutting down a child
  864: 
  865: PerlChildExitHandler Apache::lonnet::goodbye
  866: 
  867: #
  868: # LON-CAPA Section (extensions to access.conf permission configuration)
  869: #
  870: # =========================================================== Directory Options
  871: 
  872: # Start out with "no"
  873: 
  874: <Directory />
  875: Options None
  876: AllowOverride None
  877: </Directory>
  878: 
  879: # Yes to symbolic links and server-side includes
  880: 
  881: <Directory /home/httpd/html>
  882: Options Includes FollowSymLinks
  883: AllowOverride None
  884: order allow,deny
  885: allow from all
  886: </Directory>
  887: 
  888: # If it is in cgi-bin, then it can be executed as a CGI script.
  889: 
  890: <Directory /home/httpd/cgi-bin>
  891: AllowOverride None
  892: Options ExecCGI
  893: </Directory>
  894: 
  895: # ============================================================= Access Handlers
  896: 
  897: # ------------------------------------------------- Allow server-status reports
  898: <Location /server-status>
  899: SetHandler server-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 LON-CAPA "low-level" connection status reports
  907: <Location /lon-status>
  908: AuthName "LON-CAPA Network Administration"
  909: AuthType Basic
  910: AuthUserFile /home/httpd/lonTabs/htpasswd
  911: require user lonadm
  912: </Location>
  913: 
  914: # ------------------- Allow access to local system documentation from localhost
  915: Alias /doc /usr/doc
  916: <Directory /usr/doc>
  917: order deny,allow
  918: deny from all
  919: allow from localhost
  920: Options Indexes FollowSymLinks
  921: </Directory>
  922: 
  923: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  924: # ====================================== Internal Settings / Perl Configuration
  925: 
  926: PerlSetVar	 lonVersion   '<!-- VERSION -->'
  927: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  928: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  929: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  930: PerlSetVar       lonIconsURL  /adm/lonIcons
  931: PerlSetVar       londPort     5663
  932: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  933: PerlSetVar       lonDaemons   /home/httpd/perl
  934: PerlSetVar       lonSockDir   /home/httpd/sockets
  935: PerlSetVar       lonDocRoot   /home/httpd/html
  936: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  937: 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
  938: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  939: PerlSetVar       lonScansDir  /home/httpd/scantron
  940: PerlSetVar       lonScriptTimeout 10
  941: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
  942: PerlSetVar	 FAQHost	http://help.lon-capa.org/
  943: # -----------------------------------------------------------------------------
  944: # NOTE: lonSqlAccess key is the password for the MySQL user
  945: # www@localhost.  This value must always be "localhostkey".
  946: # The only security risk occurs when somebody logs in as 'www' on your system
  947: # (in which case you have much bigger problems than whether or not they
  948: # can access the non-authoritative loncapa database on your machine).
  949: 
  950: PerlSetVar       lonSqlAccess   localhostkey
  951: 
  952: # -----------------------------------------------------------------------------
  953: # lonttpdPort is the port used by the lightweight graphics httpd server
  954: # not the main Apache server
  955: PerlSetVar       lonhttpdPort  8080
  956: 
  957: 
  958: #----------------------------------------------------------------------------
  959: #
  960: #   Parameters used by secure lond/lonc
  961: 
  962: #
  963: #   Secure lond/lonc require ssl certificate and private
  964: #   key files to function correctly.  The certificate
  965: #   files need not be terribly secure, but the private key files
  966: #   should be set up so that only www (the lonc/lond effective user)
  967: #   can read them.
  968: # 
  969: #   The definition below is the full path to the directory that
  970: #   contains the certificate and key files:
  971: 
  972: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
  973: 
  974: #
  975: #  Secure lond/lonc require two certificates and a private host key.
  976: #  The certificates required are that of the lonCAPA certificate authority
  977: #  and the certificate that authority issued to this host.
  978: #  lonnetCertificateAuthority is the name of the file that contains the
  979: #                            lonCAPA certificate authority's certificate.
  980: #  lonnetCertificate is the name of the file that contains the certificate
  981: #                    issued to the host by the certificate authority.
  982: #  Both of these variables are names of files assumed to be in 
  983: #  lonCertificateDirectory:
  984: 
  985: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
  986: PerlSetVar lonnetCertificate          lonhostcert.pem
  987: 
  988: #
  989: #  To generate the request for a certificate, and to negotiate the
  990: #  initial ssl connection, the host requires a private key.  This key
  991: #  is created at lonCAPA install time.  Did we mention above that it
  992: #  should be set so that only www can read it?  The variale below
  993: #  is the name of the file relative to lonnetCertificateDirectory
  994: #  that has the host's private key.  Did we remember to tell you to
  995: #  keep the permissions on that file set to rw-------  (0600)?
  996: #  
  997: 
  998: PerlSetVar lonnetPrivateKey         lonKey.pem
  999: 
 1000: # Did we mention that the file described above must have
 1001: # permissions really locked down so that it can't be stolen?
 1002: 
 1003: #-------------------------------------------------------------------------
 1004: 
 1005: #   Parameters that define where all the ssl stuff is that's needed
 1006: #   to generate certificate requests and, on a system that's a CA
 1007: #   the certificate authority.
 1008: #    
 1009: #    SSLProgram    -> Path to the openssl command
 1010: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1011: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1012: #                     Authority.
 1013: #    SSLCAFile     -> Full path to the Certificate authority file 
 1014: #                    (on the cert manager system).
 1015: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1016: #    The following are good for the loncapa redhat installs and
 1017: #    the loncapa certificate authority system:
 1018: #
 1019: PerlSetVar SSLProgram	/usr/bin/openssl
 1020: PerlSetVar SSLDirectory /usr/share/ssl
 1021: PerlSetVar SSLCAConfig  loncapaca
 1022: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1023: #  !!!!!!!!!!!!!!!! CHANGE THIS NEXT LINE !!!!!!!!!!!!!!
 1024: PerlSetVar SSLEmail     fox@nscl.msu.edu
 1025: 
 1026: #-------------------------------------------------------------------------
 1027: 
 1028: 
 1029: 
 1030: 
 1031: # ====================================== Include machine-specific configuration
 1032: 
 1033: Include conf/loncapa.conf
 1034: 
 1035: # ================================================= Include local configuration
 1036: 
 1037: Include conf/loncapa_apache_local*.conf
 1038: 
 1039: # ================================================== Initiate mod_perl starting
 1040: 
 1041: PerlRequire      conf/startup.pl
 1042: <IfDefine !MODPERL2>
 1043: PerlFreshRestart On
 1044: </IfDefine>

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