File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.65.2.1: download - view: text, annotated - select for diffs
Mon Jan 19 22:48:47 2004 UTC (20 years, 3 months ago) by albertel
Branches: version_1_1_X
CVS tags: version_1_1_3, version_1_1_2, version_1_1_1
Diff to branchpoint 1.65: preferred, unified
- backport 1.67

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

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