File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.65: download - view: text, annotated - select for diffs
Mon Dec 8 16:31:59 2003 UTC (20 years, 5 months ago) by raeburn
Branches: MAIN
CVS tags: version_1_1_X, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, HEAD
Added entry for /adm/populate to allow use of Automated Enrollment Manager (Apache::lonpopulate)

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

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