File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.42: download - view: text, annotated - select for diffs
Wed Apr 2 20:28:27 2003 UTC (21 years, 7 months ago) by www
Branches: MAIN
CVS tags: HEAD
New handler to launch and collapse the Remote Control

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

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