File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.68: download - view: text, annotated - select for diffs
Tue Jan 13 19:43:42 2004 UTC (20 years, 4 months ago) by www
Branches: MAIN
CVS tags: HEAD
* Need to load environment before getting the language handle - so why not
in the normal request cycle?
* Should actually send out the header we made

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

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