File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.38: download - view: text, annotated - select for diffs
Sat Mar 8 01:44:04 2003 UTC (21 years, 2 months ago) by www
Branches: MAIN
CVS tags: HEAD
Call cleanup handler

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.38 2003/03/08 01:44:04 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: PerlCleanupHandler Apache::coursedocs::untiehash
  482: PerlHandler Apache::londocs
  483: ErrorDocument     403 /adm/login
  484: ErrorDocument	  500 /adm/errorhandler
  485: </Location>
  486: 
  487: <Location /adm/announcements>
  488: PerlAccessHandler       Apache::lonacc
  489: SetHandler perl-script
  490: PerlHandler Apache::lonannounce
  491: ErrorDocument     403 /adm/login
  492: ErrorDocument	  500 /adm/errorhandler
  493: </Location>
  494: 
  495: <Location /adm/chat>
  496: PerlAccessHandler       Apache::lonacc
  497: SetHandler perl-script
  498: PerlHandler Apache::lonchat
  499: ErrorDocument	  500 /adm/errorhandler
  500: </Location>
  501: 
  502: <Location /adm/chatfetch>
  503: PerlAccessHandler       Apache::lonacc
  504: SetHandler perl-script
  505: PerlHandler Apache::lonchatfetch
  506: ErrorDocument     413 /adm/overloaded.txt
  507: ErrorDocument	  500 /adm/errorhandler
  508: </Location>
  509: 
  510: <Location /adm/evaluate>
  511: PerlAccessHandler       Apache::lonacc
  512: SetHandler perl-script
  513: PerlHandler Apache::lonevaluate
  514: ErrorDocument     403 /adm/login
  515: ErrorDocument	  500 /adm/errorhandler
  516: </Location>
  517: 
  518: <Location /adm/preferences>
  519: PerlAccessHandler       Apache::lonacc
  520: SetHandler perl-script
  521: PerlHandler Apache::lonpreferences
  522: ErrorDocument     403 /adm/login
  523: ErrorDocument	  500 /adm/errorhandler
  524: </Location>
  525: 
  526: <Location /adm/assignments>
  527: PerlAccessHandler       Apache::lonacc
  528: SetHandler perl-script
  529: PerlHandler Apache::lonassignments
  530: ErrorDocument     403 /adm/login
  531: ErrorDocument     406 /adm/roles
  532: ErrorDocument	  500 /adm/errorhandler
  533: </Location>
  534: 
  535: <Location /adm/communicate>
  536: PerlAccessHandler       Apache::lonacc
  537: SetHandler perl-script
  538: PerlHandler Apache::loncommunicate
  539: ErrorDocument     403 /adm/login
  540: ErrorDocument	  500 /adm/errorhandler
  541: </Location>
  542: 
  543: <Location /adm/searchcat>
  544: PerlAccessHandler       Apache::lonacc
  545: SetHandler perl-script
  546: PerlHandler Apache::lonsearchcat
  547: PerlCleanupHandler Apache::lonsearchcat::cleanup
  548: ErrorDocument     403 /adm/login
  549: ErrorDocument     413 /adm/overloaded.txt
  550: ErrorDocument	  500 /adm/errorhandler
  551: </Location>
  552: 
  553: <Location /adm/navmaps>
  554: PerlAccessHandler       Apache::lonacc
  555: SetHandler perl-script
  556: PerlHandler Apache::lonnavmaps
  557: PerlCleanupHandler Apache::lonnavmaps::cleanup
  558: ErrorDocument     403 /adm/login
  559: ErrorDocument     406 /adm/roles
  560: ErrorDocument	  500 /adm/errorhandler
  561: </Location>
  562: 
  563: <Location /adm/quickgrades>
  564: PerlAccessHandler       Apache::lonacc
  565: SetHandler perl-script
  566: PerlHandler Apache::lonquickgrades
  567: ErrorDocument     403 /adm/login
  568: ErrorDocument     406 /adm/roles
  569: ErrorDocument     500 /adm/errorhandler
  570: </Location>
  571: 
  572: <Location /adm/groupsort>
  573: PerlAccessHandler	Apache::lonacc
  574: SetHandler perl-script
  575: PerlHandler Apache::groupsort
  576: PerlCleanupHandler Apache::groupsort::cleanup
  577: ErrorDocument     403 /adm/login
  578: ErrorDocument	  500 /adm/errorhandler
  579: </Location>
  580: 
  581: <Location /adm/errorhandler>
  582: SetHandler perl-script
  583: PerlHandler Apache::lonerrorhandler
  584: </Location>
  585: 
  586: <LocationMatch "^/adm/help/.*\.hlp$">
  587: SetHandler perl-script
  588: PerlHandler Apache::lonhelp
  589: </LocationMatch>
  590: 
  591: # ------------------------------------------------- Backdoor Adm Tests/Programs
  592: 
  593: <Location /cgi-bin/loncron.pl>
  594: AuthName "LON-CAPA Network Administration"
  595: AuthType Basic
  596: AuthUserFile /home/httpd/lonTabs/htpasswd
  597: require user lonadm
  598: </Location>
  599: 
  600: <Location /cgi-bin/userstatus.pl>
  601: AuthName "LON-CAPA Network Administration"
  602: AuthType Basic
  603: AuthUserFile /home/httpd/lonTabs/htpasswd
  604: require user lonadm
  605: </Location>
  606: 
  607: <Location /cgi-bin/lonversions.pl>
  608: AuthName "LON-CAPA Network Administration"
  609: AuthType Basic
  610: AuthUserFile /home/httpd/lonTabs/htpasswd
  611: require user lonadm
  612: </Location>
  613: 
  614: <Location /cgi-bin/clusterstatus.pl>
  615: AuthName "LON-CAPA Network Administration"
  616: AuthType Basic
  617: AuthUserFile /home/httpd/lonTabs/htpasswd
  618: require user lonadm
  619: </Location>
  620: 
  621: <Location /cgi-bin/metadata_keywords.pl>
  622: AuthName "LON-CAPA Network Administration"
  623: AuthType Basic
  624: AuthUserFile /home/httpd/lonTabs/htpasswd
  625: require user lonadm
  626: </Location>
  627: 
  628: <Location /cgi-bin/metadata_harvest.pl>
  629: AuthName "harvest"
  630: AuthType Basic
  631: AuthUserFile /home/httpd/lonTabs/htpasswd
  632: require user  reaper
  633: </Location>
  634: 
  635: <Location /adm/test>
  636: AuthName "LON-CAPA Network Administration"
  637: AuthType Basic
  638: AuthUserFile /home/httpd/lonTabs/htpasswd
  639: require user lonadm
  640: SetHandler perl-script
  641: PerlAccessHandler Apache::lonacc
  642: PerlHandler Apache::lontest
  643: </Location>
  644: 
  645: # ------------------------------------------------------- Shutting down a child
  646: 
  647: PerlChildExitHandler Apache::lonnet::goodbye
  648: 
  649: #
  650: # LON-CAPA Section (extensions to access.conf permission configuration)
  651: #
  652: # =========================================================== Directory Options
  653: 
  654: # Start out with "no"
  655: 
  656: <Directory />
  657: Options None
  658: AllowOverride None
  659: </Directory>
  660: 
  661: # Yes to symbolic links and server-side includes
  662: 
  663: <Directory /home/httpd/html>
  664: Options Includes FollowSymLinks
  665: AllowOverride None
  666: order allow,deny
  667: allow from all
  668: </Directory>
  669: 
  670: # If it is in cgi-bin, then it can be executed as a CGI script.
  671: 
  672: <Directory /home/httpd/cgi-bin>
  673: AllowOverride None
  674: Options ExecCGI
  675: </Directory>
  676: 
  677: # ============================================================= Access Handlers
  678: 
  679: # ------------------------------------------------- Allow server-status reports
  680: <Location /server-status>
  681: SetHandler server-status
  682: AuthName "LON-CAPA Network Administration"
  683: AuthType Basic
  684: AuthUserFile /home/httpd/lonTabs/htpasswd
  685: require user lonadm
  686: </Location>
  687: 
  688: # ------------------------ Allow LON-CAPA "low-level" connection status reports
  689: <Location /lon-status>
  690: AuthName "LON-CAPA Network Administration"
  691: AuthType Basic
  692: AuthUserFile /home/httpd/lonTabs/htpasswd
  693: require user lonadm
  694: </Location>
  695: 
  696: # ------------------- Allow access to local system documentation from localhost
  697: Alias /doc /usr/doc
  698: <Directory /usr/doc>
  699: order deny,allow
  700: deny from all
  701: allow from localhost
  702: Options Indexes FollowSymLinks
  703: </Directory>
  704: 
  705: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  706: # ====================================== Internal Settings / Perl Configuration
  707: 
  708: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  709: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  710: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  711: PerlSetVar       lonIconsURL  /adm/lonIcons
  712: PerlSetVar       londPort     5663
  713: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  714: PerlSetVar       lonDaemons   /home/httpd/perl
  715: PerlSetVar       lonSockDir   /home/httpd/sockets
  716: PerlSetVar       lonDocRoot   /home/httpd/html
  717: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  718: 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
  719: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  720: 
  721: # -----------------------------------------------------------------------------
  722: # NOTE: lonSqlAccess key is the password for the MySQL user
  723: # www@localhost.  This value must always be "localhostkey".
  724: # The only security risk occurs when somebody logs in as 'www' on your system
  725: # (in which case you have much bigger problems than whether or not they
  726: # can access the non-authoritative loncapa database on your machine).
  727: 
  728: PerlSetVar       lonSqlAccess   localhostkey
  729: 
  730: # -----------------------------------------------------------------------------
  731: # lonttpdPort is the port used by the lightweight graphics httpd server
  732: # not the main Apache server
  733: PerlSetVar       lonhttpdPort  8080
  734: 
  735: 
  736: 
  737: # ====================================== Include machine-specific configuration
  738: 
  739: Include conf/loncapa.conf
  740: 
  741: # ================================================== Initiate mod_perl starting
  742: 
  743: PerlRequire      conf/startup.pl
  744: PerlFreshRestart On

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