File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.123: download - view: text, annotated - select for diffs
Wed Mar 29 18:08:40 2006 UTC (18 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Use coursegrp_portfolio for collaborative file upload area in course groups.

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

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