File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.74: download - view: text, annotated - select for diffs
Wed Mar 31 04:38:06 2004 UTC (20 years, 1 month ago) by www
Branches: MAIN
CVS tags: HEAD
Work on encrypted URLs

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

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