File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.43: download - view: text, annotated - select for diffs
Thu Apr 3 14:35:59 2003 UTC (21 years, 2 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- shift to using a pervar timeout
- add perlvar for scantron dir

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