File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.120: download - view: text, annotated - select for diffs
Tue Nov 15 23:05:05 2005 UTC (18 years, 5 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Use simplepage for course group page editing/display.

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

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