File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.37: download - view: text, annotated - select for diffs
Tue Feb 25 21:56:48 2003 UTC (21 years, 8 months ago) by www
Branches: MAIN
CVS tags: HEAD
Bug #1267 - list of active users via /cgi-bin/userstatus.pl
Trying to get clusterstatus.pl working again. Added ability to ignore
comments in hosts.tab, and took out Net::Ping because that library is kaputt.

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

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