File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.72: download - view: text, annotated - select for diffs
Tue Feb 17 23:44:47 2004 UTC (20 years, 3 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Added entry for testbankimport.pm

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

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