File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.55: download - view: text, annotated - select for diffs
Mon Jul 7 07:32:16 2003 UTC (20 years, 10 months ago) by www
Branches: MAIN
CVS tags: HEAD
Continued work on DOCS homework.

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

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