File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.62: download - view: text, annotated - select for diffs
Thu Sep 11 19:47:30 2003 UTC (20 years, 8 months ago) by www
Branches: MAIN
CVS tags: HEAD
Script to re-route traffic from one LON-CAPA server to another in case of
weirdness.

Use:

 /cgi-bin/takeoffline.pl

puts up screen that server is kaputt

 /cgi-bin/takeoffline.pl?foo.bar.edu

reroute to foo.bar.edu

 /cgi-bin/takeonline.pl

restore normal welcome

Uses basic auth user "offline"

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

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