File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.70: download - view: text, annotated - select for diffs
Thu Jan 15 01:43:43 2004 UTC (20 years, 4 months ago) by www
Branches: MAIN
CVS tags: HEAD
Bugzilla and FAQ links

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

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