File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.88: download - view: text, annotated - select for diffs
Tue Jun 29 14:19:32 2004 UTC (19 years, 10 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- can't put inline comments on PerlSetVar lines

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.88 2004/06/29 14:19:32 albertel Exp $
    5: ##
    6: 
    7: #
    8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
    9: #
   10: # ================================================================ DocumentRoot
   11: 
   12: DocumentRoot "/home/httpd/html"
   13: 
   14: # ======================================================================== User
   15: 
   16: User www
   17: Group www
   18: 
   19: # ======================================================= Shared Object Modules
   20: 
   21: LoadModule perl_module       modules/libperl.so
   22: <IfDefine !MODPERL2>
   23: AddModule mod_perl.c
   24: </IfDefine>
   25: 
   26: <IfDefine MODPERL2>
   27: PerlSetVar	MODPERL2	1
   28: </IfDefine>
   29: # =============================================================== Miscellaneous
   30: 
   31: ServerAdmin korte@lite.msu.edu
   32: ExtendedStatus On
   33: #
   34: # LON-CAPA Section (extensions to srm.conf name space servicing)
   35: #
   36: # ===================================================================== Aliases
   37: 
   38: Alias /prtspool/ /home/httpd/prtspool/
   39: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   40: 
   41: # ================================================================= Directories
   42: 
   43: # ------------------------------------------------------------- Access Handlers
   44: 
   45: PerlTransHandler	Apache::lontrans
   46: <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: # ------------------------------------------------- Backdoor Adm Tests/Programs
  776: 
  777: <Location /cgi-bin/loncron.pl>
  778: AuthName "LON-CAPA Network Administration"
  779: AuthType Basic
  780: AuthUserFile /home/httpd/lonTabs/htpasswd
  781: require user lonadm
  782: </Location>
  783: 
  784: <Location /cgi-bin/userstatus.pl>
  785: AuthName "LON-CAPA Network Administration"
  786: AuthType Basic
  787: AuthUserFile /home/httpd/lonTabs/htpasswd
  788: require user lonadm
  789: </Location>
  790: 
  791: <Location /cgi-bin/lonversions.pl>
  792: AuthName "LON-CAPA Network Administration"
  793: AuthType Basic
  794: AuthUserFile /home/httpd/lonTabs/htpasswd
  795: require user lonadm
  796: </Location>
  797: 
  798: <Location /cgi-bin/clusterstatus.pl>
  799: AuthName "LON-CAPA Network Administration"
  800: AuthType Basic
  801: AuthUserFile /home/httpd/lonTabs/htpasswd
  802: require user lonadm
  803: </Location>
  804: 
  805: <Location /cgi-bin/metadata_keywords.pl>
  806: AuthName "LON-CAPA Network Administration"
  807: AuthType Basic
  808: AuthUserFile /home/httpd/lonTabs/htpasswd
  809: require user lonadm
  810: </Location>
  811: 
  812: <Location /cgi-bin/metadata_harvest.pl>
  813: AuthName "harvest"
  814: AuthType Basic
  815: AuthUserFile /home/httpd/lonTabs/htpasswd
  816: require user  reaper
  817: </Location>
  818: 
  819: <Location /cgi-bin/takeoffline.pl>
  820: AuthName "Offline"
  821: AuthType Basic
  822: AuthUserFile /home/httpd/lonTabs/htpasswd
  823: require user  offline
  824: </Location>
  825: 
  826: <Location /cgi-bin/takeonline.pl>
  827: AuthName "Offline"
  828: AuthType Basic
  829: AuthUserFile /home/httpd/lonTabs/htpasswd
  830: require user  offline
  831: </Location>
  832: 
  833: <Location /adm/test>
  834: AuthName "LON-CAPA Network Administration"
  835: AuthType Basic
  836: AuthUserFile /home/httpd/lonTabs/htpasswd
  837: require user lonadm
  838: SetHandler perl-script
  839: PerlAccessHandler Apache::lonacc
  840: PerlHandler Apache::lontest
  841: </Location>
  842: 
  843: # ------------------------------------------------------- Shutting down a child
  844: 
  845: PerlChildExitHandler Apache::lonnet::goodbye
  846: 
  847: #
  848: # LON-CAPA Section (extensions to access.conf permission configuration)
  849: #
  850: # =========================================================== Directory Options
  851: 
  852: # Start out with "no"
  853: 
  854: <Directory />
  855: Options None
  856: AllowOverride None
  857: </Directory>
  858: 
  859: # Yes to symbolic links and server-side includes
  860: 
  861: <Directory /home/httpd/html>
  862: Options Includes FollowSymLinks
  863: AllowOverride None
  864: order allow,deny
  865: allow from all
  866: </Directory>
  867: 
  868: # If it is in cgi-bin, then it can be executed as a CGI script.
  869: 
  870: <Directory /home/httpd/cgi-bin>
  871: AllowOverride None
  872: Options ExecCGI
  873: </Directory>
  874: 
  875: # ============================================================= Access Handlers
  876: 
  877: # ------------------------------------------------- Allow server-status reports
  878: <Location /server-status>
  879: SetHandler server-status
  880: AuthName "LON-CAPA Network Administration"
  881: AuthType Basic
  882: AuthUserFile /home/httpd/lonTabs/htpasswd
  883: require user lonadm
  884: </Location>
  885: 
  886: # ------------------------ Allow LON-CAPA "low-level" connection status reports
  887: <Location /lon-status>
  888: AuthName "LON-CAPA Network Administration"
  889: AuthType Basic
  890: AuthUserFile /home/httpd/lonTabs/htpasswd
  891: require user lonadm
  892: </Location>
  893: 
  894: # ------------------- Allow access to local system documentation from localhost
  895: Alias /doc /usr/doc
  896: <Directory /usr/doc>
  897: order deny,allow
  898: deny from all
  899: allow from localhost
  900: Options Indexes FollowSymLinks
  901: </Directory>
  902: 
  903: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  904: # ====================================== Internal Settings / Perl Configuration
  905: 
  906: PerlSetVar	 lonVersion   '<!-- VERSION -->'
  907: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  908: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  909: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  910: PerlSetVar       lonIconsURL  /adm/lonIcons
  911: PerlSetVar       londPort     5663
  912: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  913: PerlSetVar       lonDaemons   /home/httpd/perl
  914: PerlSetVar       lonSockDir   /home/httpd/sockets
  915: PerlSetVar       lonDocRoot   /home/httpd/html
  916: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  917: 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
  918: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  919: PerlSetVar       lonScansDir  /home/httpd/scantron
  920: PerlSetVar       lonScriptTimeout 10
  921: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
  922: PerlSetVar	 FAQHost	http://help.lon-capa.org/
  923: # -----------------------------------------------------------------------------
  924: # NOTE: lonSqlAccess key is the password for the MySQL user
  925: # www@localhost.  This value must always be "localhostkey".
  926: # The only security risk occurs when somebody logs in as 'www' on your system
  927: # (in which case you have much bigger problems than whether or not they
  928: # can access the non-authoritative loncapa database on your machine).
  929: 
  930: PerlSetVar       lonSqlAccess   localhostkey
  931: 
  932: # -----------------------------------------------------------------------------
  933: # lonttpdPort is the port used by the lightweight graphics httpd server
  934: # not the main Apache server
  935: PerlSetVar       lonhttpdPort  8080
  936: 
  937: 
  938: #----------------------------------------------------------------------------
  939: #
  940: #   Parameters used by secure lond/lonc
  941: 
  942: #
  943: #   Secure lond/lonc require ssl certificate and private
  944: #   key files to function correctly.  The certificate
  945: #   files need not be terribly secure, but the private key files
  946: #   should be set up so that only www (the lonc/lond effective user)
  947: #   can read them.
  948: # 
  949: #   The definition below is the full path to the directory that
  950: #   contains the certificate and key files:
  951: 
  952: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
  953: 
  954: #
  955: #  Secure lond/lonc require two certificates and a private host key.
  956: #  The certificates required are that of the lonCAPA certificate authority
  957: #  and the certificate that authority issued to this host.
  958: #  lonnetCertificateAuthority is the name of the file that contains the
  959: #                            lonCAPA certificate authority's certificate.
  960: #  lonnetCertificate is the name of the file that contains the certificate
  961: #                    issued to the host by the certificate authority.
  962: #  Both of these variables are names of files assumed to be in 
  963: #  lonCertificateDirectory:
  964: 
  965: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
  966: PerlSetVar lonnetCertificate          lonhostcert.pem
  967: 
  968: #
  969: #  To generate the request for a certificate, and to negotiate the
  970: #  initial ssl connection, the host requires a private key.  This key
  971: #  is created at lonCAPA install time.  Did we mention above that it
  972: #  should be set so that only www can read it?  The variale below
  973: #  is the name of the file relative to lonnetCertificateDirectory
  974: #  that has the host's private key.  Did we remember to tell you to
  975: #  keep the permissions on that file set to rw-------  (0600)?
  976: #  
  977: 
  978: PerlSetVar lonnetPrivateKey         lonKey.pem
  979: 
  980: # Did we mention that the file described above must have
  981: # permissions really locked down so that it can't be stolen?
  982: 
  983: #-------------------------------------------------------------------------
  984: 
  985: #   Parameters that define where all the ssl stuff is that's needed
  986: #   to generate certificate requests and, on a system that's a CA
  987: #   the certificate authority.
  988: #    
  989: #    SSLProgram    -> Path to the openssl command
  990: #    SSLDirectory  -> Directory containing ssl configuration files etc.
  991: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
  992: #                     Authority.
  993: #    SSLCAFile     -> Full path to the Certificate authority file 
  994: #                    (on the cert manager system).
  995: #    SSLEmail      -> E-mail address of loncapa certificate manager.
  996: #    The following are good for the loncapa redhat installs and
  997: #    the loncapa certificate authority system:
  998: #
  999: PerlSetVar SSLProgram	/usr/bin/openssl
 1000: PerlSetVar SSLDirectory /usr/share/ssl
 1001: PerlSetVar SSLCAConfig  loncapaca
 1002: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1003: # CHANGE THIS!!!!!
 1004: PerlSetVar SSLEmail     fox@nscl.msu.edu     
 1005: 
 1006: #-------------------------------------------------------------------------
 1007: 
 1008: 
 1009: 
 1010: 
 1011: # ====================================== Include machine-specific configuration
 1012: 
 1013: Include conf/loncapa.conf
 1014: 
 1015: # ================================================= Include local configuration
 1016: 
 1017: Include conf/loncapa_apache_local*.conf
 1018: 
 1019: # ================================================== Initiate mod_perl starting
 1020: 
 1021: PerlRequire      conf/startup.pl
 1022: <IfDefine !MODPERL2>
 1023: PerlFreshRestart On
 1024: </IfDefine>

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