File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.32: download - view: text, annotated - select for diffs
Mon Feb 3 18:03:52 2003 UTC (21 years, 3 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
best wishes to all.

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.32 2003/02/03 18:03:52 harris41 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/pickstudent>
  223: PerlAccessHandler       Apache::lonacc
  224: SetHandler perl-script
  225: PerlHandler Apache::lonpickstudent
  226: ErrorDocument     403 /adm/login
  227: ErrorDocument	  500 /adm/errorhandler
  228: </Location>
  229: 
  230: <Location /adm/login>
  231: SetHandler perl-script
  232: PerlHandler Apache::lonlogin
  233: </Location>
  234: 
  235: <Location /adm/logout>
  236: PerlAccessHandler       Apache::lonacc
  237: SetHandler perl-script
  238: PerlHandler Apache::lonlogout
  239: ErrorDocument     403 /adm/login
  240: </Location>
  241: 
  242: <Location /adm/authenticate>
  243: SetHandler perl-script
  244: PerlHandler Apache::lonauth
  245: </Location>
  246: 
  247: <Location /adm/annotations>
  248: PerlAccessHandler       Apache::lonacc
  249: SetHandler perl-script
  250: PerlHandler Apache::admannotations
  251: ErrorDocument     403 /adm/login
  252: ErrorDocument	  500 /adm/errorhandler
  253: </Location>
  254: 
  255: <Location /adm/bookmarks>
  256: PerlAccessHandler       Apache::lonacc
  257: SetHandler perl-script
  258: PerlHandler Apache::admbookmarks
  259: ErrorDocument     403 /adm/login
  260: ErrorDocument	  500 /adm/errorhandler
  261: </Location>
  262: 
  263: <Location /adm/flip>
  264: PerlAccessHandler       Apache::lonacc
  265: SetHandler perl-script
  266: PerlHandler Apache::lonpageflip
  267: PerlCleanupHandler Apache::lonpageflip::cleanup
  268: ErrorDocument     406 /adm/roles
  269: ErrorDocument     403 /adm/login
  270: ErrorDocument	  500 /adm/errorhandler
  271: </Location>
  272: 
  273: <Location /adm/ambiguous>
  274: PerlAccessHandler       Apache::lonacc
  275: SetHandler perl-script
  276: PerlHandler Apache::lonambiguous
  277: PerlCleanupHandler Apache::lonambiguous::cleanup
  278: ErrorDocument     403 /adm/login
  279: ErrorDocument	  500 /adm/errorhandler
  280: </Location>
  281: 
  282: <Location /adm/email>
  283: PerlAccessHandler       Apache::lonacc
  284: SetHandler perl-script
  285: PerlHandler Apache::lonmsg
  286: ErrorDocument     403 /adm/login
  287: ErrorDocument	  500 /adm/errorhandler
  288: </Location>
  289: 
  290: <Location /adm/parmset>
  291: PerlAccessHandler       Apache::lonacc
  292: SetHandler perl-script
  293: PerlHandler Apache::lonparmset
  294: ErrorDocument     403 /adm/login
  295: ErrorDocument     406 /adm/roles
  296: ErrorDocument	  500 /adm/errorhandler
  297: </Location>
  298: 
  299: <Location /adm/wizard>
  300: PerlAccessHandler       Apache::lonacc
  301: SetHandler perl-script
  302: PerlHandler Apache::lonwizard
  303: ErrorDocument     403 /adm/login
  304: ErrorDocument     406 /adm/roles
  305: ErrorDocument	  500 /adm/errorhandler
  306: </Location>
  307: 
  308: <Location /adm/grades>
  309: PerlAccessHandler       Apache::lonacc
  310: SetHandler perl-script
  311: PerlHandler Apache::grades
  312: ErrorDocument     403 /adm/login
  313: ErrorDocument     406 /adm/roles
  314: ErrorDocument	  500 /adm/errorhandler
  315: </Location>
  316: 
  317: <Location /adm/createcourse>
  318: PerlAccessHandler       Apache::lonacc
  319: SetHandler perl-script
  320: PerlHandler Apache::loncreatecourse
  321: ErrorDocument     403 /adm/login
  322: ErrorDocument     406 /adm/roles
  323: ErrorDocument	  500 /adm/errorhandler
  324: </Location>
  325: 
  326: <Location /adm/createuser>
  327: PerlAccessHandler       Apache::lonacc
  328: SetHandler perl-script
  329: PerlHandler Apache::loncreateuser
  330: ErrorDocument     403 /adm/login
  331: ErrorDocument     406 /adm/roles
  332: ErrorDocument	  500 /adm/errorhandler
  333: </Location>
  334: 
  335: <Location /adm/publish>
  336: PerlAccessHandler       Apache::lonacc
  337: SetHandler perl-script
  338: PerlHandler Apache::lonpublisher
  339: ErrorDocument     403 /adm/login
  340: ErrorDocument     404 /adm/notfound.html
  341: ErrorDocument     406 /adm/unauthorized
  342: ErrorDocument	  500 /adm/errorhandler
  343: </Location>
  344: 
  345: <LocationMatch "^/\~.*/$">
  346: PerlAccessHandler       Apache::loncacc
  347: SetHandler perl-script
  348: PerlHandler Apache::lonpubdir
  349: ErrorDocument     403 /adm/login
  350: ErrorDocument     404 /adm/notfound.html
  351: ErrorDocument     406 /adm/unauthorized
  352: ErrorDocument	  500 /adm/errorhandler
  353: </LocationMatch>
  354: 
  355: <Location /adm/pubdir>
  356: PerlAccessHandler       Apache::lonacc
  357: SetHandler perl-script
  358: PerlHandler Apache::lonpubdir
  359: ErrorDocument     403 /adm/login
  360: ErrorDocument     404 /adm/notfound.html
  361: ErrorDocument     406 /adm/unauthorized
  362: ErrorDocument	  500 /adm/errorhandler
  363: </Location>
  364: 
  365: <Location /adm/unauthorized>
  366: PerlAccessHandler       Apache::lonacc
  367: SetHandler perl-script
  368: PerlHandler Apache::lonunauthorized
  369: ErrorDocument     403 /adm/login
  370: ErrorDocument     404 /adm/notfound.html
  371: ErrorDocument	  500 /adm/errorhandler
  372: </Location>
  373: 
  374: <Location /adm/retrieve>
  375: PerlAccessHandler       Apache::lonacc
  376: SetHandler perl-script
  377: PerlHandler Apache::lonretrieve
  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: <Location /adm/cfile>
  385: PerlAccessHandler       Apache::lonacc
  386: SetHandler perl-script
  387: PerlHandler Apache::loncfile
  388: ErrorDocument     403 /adm/login
  389: ErrorDocument     404 /adm/notfound.html
  390: ErrorDocument     406 /adm/unauthorized
  391: ErrorDocument	  500 /adm/errorhandler
  392: </Location>
  393: 
  394: <Location /adm/diff>
  395: PerlAccessHandler       Apache::lonacc
  396: SetHandler perl-script
  397: PerlHandler Apache::londiff
  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/upload>
  405: PerlAccessHandler       Apache::lonacc
  406: SetHandler perl-script
  407: PerlHandler Apache::lonupload
  408: ErrorDocument     403 /adm/login
  409: ErrorDocument     404 /adm/notfound.html
  410: ErrorDocument     406 /adm/unauthorized
  411: ErrorDocument	  500 /adm/errorhandler
  412: </Location>
  413: 
  414: <Location /adm/assesscalc>
  415: PerlAccessHandler       Apache::lonacc
  416: SetHandler perl-script
  417: PerlHandler Apache::lonspreadsheet
  418: ErrorDocument     403 /adm/login
  419: ErrorDocument     406 /adm/roles
  420: ErrorDocument     413 /adm/overloaded.txt
  421: ErrorDocument	  500 /adm/errorhandler
  422: </Location>
  423: 
  424: <Location /adm/studentcalc>
  425: PerlAccessHandler       Apache::lonacc
  426: SetHandler perl-script
  427: PerlHandler Apache::lonspreadsheet
  428: ErrorDocument     403 /adm/login
  429: ErrorDocument     406 /adm/roles
  430: ErrorDocument     413 /adm/overloaded.txt
  431: ErrorDocument	  500 /adm/errorhandler
  432: </Location>
  433: 
  434: <Location /adm/classcalc>
  435: PerlAccessHandler       Apache::lonacc
  436: SetHandler perl-script
  437: PerlHandler Apache::lonspreadsheet
  438: ErrorDocument     403 /adm/login
  439: ErrorDocument     406 /adm/roles
  440: ErrorDocument     413 /adm/overloaded.txt
  441: ErrorDocument	  500 /adm/errorhandler
  442: </Location>
  443: 
  444: <Location /adm/dropadd>
  445: PerlAccessHandler       Apache::lonacc
  446: SetHandler perl-script
  447: PerlHandler Apache::londropadd
  448: ErrorDocument     403 /adm/login
  449: ErrorDocument     406 /adm/roles
  450: ErrorDocument	  500 /adm/errorhandler
  451: </Location>
  452: 
  453: <Location /adm/printout>
  454: PerlAccessHandler       Apache::lonacc
  455: SetHandler perl-script
  456: PerlHandler Apache::lonprintout
  457: ErrorDocument     403 /adm/login
  458: ErrorDocument     413 /adm/overloaded.txt
  459: ErrorDocument	  500 /adm/errorhandler
  460: </Location>
  461: 
  462: <Location /adm/feedback>
  463: PerlAccessHandler       Apache::lonacc
  464: SetHandler perl-script
  465: PerlHandler Apache::lonfeedback
  466: ErrorDocument     403 /adm/login
  467: ErrorDocument	  500 /adm/errorhandler
  468: </Location>
  469: 
  470: <Location /adm/coursedocs>
  471: PerlAccessHandler       Apache::lonacc
  472: SetHandler perl-script
  473: PerlHandler Apache::londocs
  474: ErrorDocument     403 /adm/login
  475: ErrorDocument	  500 /adm/errorhandler
  476: </Location>
  477: 
  478: <Location /adm/announcements>
  479: PerlAccessHandler       Apache::lonacc
  480: SetHandler perl-script
  481: PerlHandler Apache::lonannounce
  482: ErrorDocument     403 /adm/login
  483: ErrorDocument	  500 /adm/errorhandler
  484: </Location>
  485: 
  486: <Location /adm/chat>
  487: PerlAccessHandler       Apache::lonacc
  488: SetHandler perl-script
  489: PerlHandler Apache::lonchat
  490: ErrorDocument	  500 /adm/errorhandler
  491: </Location>
  492: 
  493: <Location /adm/chatfetch>
  494: PerlAccessHandler       Apache::lonacc
  495: SetHandler perl-script
  496: PerlHandler Apache::lonchatfetch
  497: ErrorDocument     413 /adm/overloaded.txt
  498: ErrorDocument	  500 /adm/errorhandler
  499: </Location>
  500: 
  501: <Location /adm/evaluate>
  502: PerlAccessHandler       Apache::lonacc
  503: SetHandler perl-script
  504: PerlHandler Apache::lonevaluate
  505: ErrorDocument     403 /adm/login
  506: ErrorDocument	  500 /adm/errorhandler
  507: </Location>
  508: 
  509: <Location /adm/preferences>
  510: PerlAccessHandler       Apache::lonacc
  511: SetHandler perl-script
  512: PerlHandler Apache::lonpreferences
  513: ErrorDocument     403 /adm/login
  514: ErrorDocument	  500 /adm/errorhandler
  515: </Location>
  516: 
  517: <Location /adm/assignments>
  518: PerlAccessHandler       Apache::lonacc
  519: SetHandler perl-script
  520: PerlHandler Apache::lonassignments
  521: ErrorDocument     403 /adm/login
  522: ErrorDocument     406 /adm/roles
  523: ErrorDocument	  500 /adm/errorhandler
  524: </Location>
  525: 
  526: <Location /adm/communicate>
  527: PerlAccessHandler       Apache::lonacc
  528: SetHandler perl-script
  529: PerlHandler Apache::loncommunicate
  530: ErrorDocument     403 /adm/login
  531: ErrorDocument	  500 /adm/errorhandler
  532: </Location>
  533: 
  534: <Location /adm/searchcat>
  535: PerlAccessHandler       Apache::lonacc
  536: SetHandler perl-script
  537: PerlHandler Apache::lonsearchcat
  538: PerlCleanupHandler Apache::lonsearchcat::cleanup
  539: ErrorDocument     403 /adm/login
  540: ErrorDocument     413 /adm/overloaded.txt
  541: ErrorDocument	  500 /adm/errorhandler
  542: </Location>
  543: 
  544: <Location /adm/navmaps>
  545: PerlAccessHandler       Apache::lonacc
  546: SetHandler perl-script
  547: PerlHandler Apache::lonnavmaps
  548: PerlCleanupHandler Apache::lonnavmaps::cleanup
  549: ErrorDocument     403 /adm/login
  550: ErrorDocument     406 /adm/roles
  551: ErrorDocument	  500 /adm/errorhandler
  552: </Location>
  553: 
  554: <Location /adm/quickgrades>
  555: PerlAccessHandler       Apache::lonacc
  556: SetHandler perl-script
  557: PerlHandler Apache::lonquickgrades
  558: ErrorDocument     403 /adm/login
  559: ErrorDocument     406 /adm/roles
  560: ErrorDocument     500 /adm/errorhandler
  561: </Location>
  562: 
  563: <Location /adm/groupsort>
  564: PerlAccessHandler	Apache::lonacc
  565: SetHandler perl-script
  566: PerlHandler Apache::groupsort
  567: PerlCleanupHandler Apache::groupsort::cleanup
  568: ErrorDocument     403 /adm/login
  569: ErrorDocument	  500 /adm/errorhandler
  570: </Location>
  571: 
  572: <Location /adm/errorhandler>
  573: SetHandler perl-script
  574: PerlHandler Apache::lonerrorhandler
  575: </Location>
  576: 
  577: <LocationMatch "^/adm/help/.*\.hlp$">
  578: SetHandler perl-script
  579: PerlHandler Apache::lonhelp
  580: </LocationMatch>
  581: 
  582: # ------------------------------------------------- Backdoor Adm Tests/Programs
  583: 
  584: <Location /cgi-bin/loncron.pl>
  585: AuthName "LON-CAPA Network Administration"
  586: AuthType Basic
  587: AuthUserFile /home/httpd/lonTabs/htpasswd
  588: require user lonadm
  589: </Location>
  590: 
  591: <Location /cgi-bin/lonversions.pl>
  592: AuthName "LON-CAPA Network Administration"
  593: AuthType Basic
  594: AuthUserFile /home/httpd/lonTabs/htpasswd
  595: require user lonadm
  596: </Location>
  597: 
  598: <Location /cgi-bin/clusterstatus.pl>
  599: AuthName "LON-CAPA Network Administration"
  600: AuthType Basic
  601: AuthUserFile /home/httpd/lonTabs/htpasswd
  602: require user lonadm
  603: </Location>
  604: 
  605: <Location /cgi-bin/metadata_keywords.pl>
  606: AuthName "LON-CAPA Network Administration"
  607: AuthType Basic
  608: AuthUserFile /home/httpd/lonTabs/htpasswd
  609: require user lonadm
  610: </Location>
  611: 
  612: <Location /cgi-bin/metadata_harvest.pl>
  613: AuthName "harvest"
  614: AuthType Basic
  615: AuthUserFile /home/httpd/lonTabs/htpasswd
  616: require user  reaper
  617: </Location>
  618: 
  619: <Location /adm/test>
  620: AuthName "LON-CAPA Network Administration"
  621: AuthType Basic
  622: AuthUserFile /home/httpd/lonTabs/htpasswd
  623: require user lonadm
  624: SetHandler perl-script
  625: PerlAccessHandler Apache::lonacc
  626: PerlHandler Apache::lontest
  627: </Location>
  628: 
  629: # ------------------------------------------------------- Shutting down a child
  630: 
  631: PerlChildExitHandler Apache::lonnet::goodbye
  632: 
  633: #
  634: # LON-CAPA Section (extensions to access.conf permission configuration)
  635: #
  636: # =========================================================== Directory Options
  637: 
  638: # Start out with "no"
  639: 
  640: <Directory />
  641: Options None
  642: AllowOverride None
  643: </Directory>
  644: 
  645: # Yes to symbolic links and server-side includes
  646: 
  647: <Directory /home/httpd/html>
  648: Options Includes FollowSymLinks
  649: AllowOverride None
  650: order allow,deny
  651: allow from all
  652: </Directory>
  653: 
  654: # If it is in cgi-bin, then it can be executed as a CGI script.
  655: 
  656: <Directory /home/httpd/cgi-bin>
  657: AllowOverride None
  658: Options ExecCGI
  659: </Directory>
  660: 
  661: # ============================================================= Access Handlers
  662: 
  663: # ------------------------------------------------- Allow server-status reports
  664: <Location /server-status>
  665: SetHandler server-status
  666: AuthName "LON-CAPA Network Administration"
  667: AuthType Basic
  668: AuthUserFile /home/httpd/lonTabs/htpasswd
  669: require user lonadm
  670: </Location>
  671: 
  672: # ------------------------ Allow LON-CAPA "low-level" connection status reports
  673: <Location /lon-status>
  674: AuthName "LON-CAPA Network Administration"
  675: AuthType Basic
  676: AuthUserFile /home/httpd/lonTabs/htpasswd
  677: require user lonadm
  678: </Location>
  679: 
  680: # ------------------- Allow access to local system documentation from localhost
  681: Alias /doc /usr/doc
  682: <Directory /usr/doc>
  683: order deny,allow
  684: deny from all
  685: allow from localhost
  686: Options Indexes FollowSymLinks
  687: </Directory>
  688: 
  689: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  690: # ====================================== Internal Settings / Perl Configuration
  691: 
  692: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  693: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  694: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  695: PerlSetVar       lonIconsURL  /adm/lonIcons
  696: PerlSetVar       londPort     5663
  697: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  698: PerlSetVar       lonDaemons   /home/httpd/perl
  699: PerlSetVar       lonSockDir   /home/httpd/sockets
  700: PerlSetVar       lonDocRoot   /home/httpd/html
  701: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  702: 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
  703: 
  704: # -----------------------------------------------------------------------------
  705: # NOTE: lonSqlAccess key is the password for the MySQL user
  706: # www@localhost.  This value must always be "localhostkey".
  707: # The only security risk occurs when somebody logs in as 'www' on your system
  708: # (in which case you have much bigger problems than whether or not they
  709: # can access the non-authoritative loncapa database on your machine).
  710: 
  711: PerlSetVar       lonSqlAccess   localhostkey
  712: 
  713: # -----------------------------------------------------------------------------
  714: 
  715: 
  716: # ====================================== Include machine-specific configuration
  717: 
  718: Include conf/loncapa.conf
  719: 
  720: # ================================================== Initiate mod_perl starting
  721: 
  722: PerlRequire      conf/startup.pl
  723: PerlFreshRestart On

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