File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.76: download - view: text, annotated - select for diffs
Thu Apr 1 14:28:49 2004 UTC (20 years, 1 month ago) by albertel
Branches: MAIN
CVS tags: HEAD
- I have my reasons

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

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