File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.66: download - view: text, annotated - select for diffs
Wed Dec 10 00:32:55 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
CVS tags: HEAD
Internationalize publisher.html

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.66 2003/12/10 00:32:55 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: <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: <LocationMatch "^/adm/localize/">
  232: PerlAccessHandler       Apache::lonacc
  233: SetHandler perl-script
  234: PerlHandler Apache::lonlocal
  235: ErrorDocument     403 /adm/login
  236: ErrorDocument	  500 /adm/errorhandler
  237: </LocationMatch>
  238: 
  239: # -------------------------------------------------------------- Admin Programs
  240: 
  241: <Location /adm/randomlabel.png>
  242: PerlAccessHandler       Apache::lonacc
  243: SetHandler perl-script
  244: PerlHandler Apache::randomlylabel
  245: ErrorDocument     403 /adm/login
  246: ErrorDocument	  500 /adm/errorhandler
  247: </Location>
  248: 
  249: <Location /adm/statistics>
  250: PerlAccessHandler       Apache::lonacc
  251: SetHandler perl-script
  252: PerlHandler Apache::lonstatistics
  253: ErrorDocument     403 /adm/login
  254: ErrorDocument     413 /adm/overloaded.txt
  255: ErrorDocument	  500 /adm/errorhandler
  256: </Location>
  257: 
  258: <Location /adm/roles>
  259: PerlAccessHandler       Apache::lonacc
  260: SetHandler perl-script
  261: PerlHandler Apache::lonroles
  262: ErrorDocument     403 /adm/login
  263: ErrorDocument	  500 /adm/errorhandler
  264: </Location>
  265: 
  266: <Location /adm/menu>
  267: PerlAccessHandler       Apache::lonacc
  268: SetHandler perl-script
  269: PerlHandler Apache::lonmenu
  270: ErrorDocument     403 /adm/login
  271: ErrorDocument	  500 /adm/errorhandler
  272: </Location>
  273: 
  274: <Location /adm/remote>
  275: PerlAccessHandler       Apache::lonacc
  276: SetHandler perl-script
  277: PerlHandler Apache::lonremote
  278: ErrorDocument     403 /adm/login
  279: ErrorDocument	  500 /adm/errorhandler
  280: </Location>
  281: 
  282: <Location /adm/pickstudent>
  283: PerlAccessHandler       Apache::lonacc
  284: SetHandler perl-script
  285: PerlHandler Apache::lonpickstudent
  286: ErrorDocument     403 /adm/login
  287: ErrorDocument	  500 /adm/errorhandler
  288: </Location>
  289: 
  290: <Location /adm/pickcourse>
  291: PerlAccessHandler       Apache::lonacc
  292: SetHandler perl-script
  293: PerlHandler Apache::lonpickcourse
  294: ErrorDocument     403 /adm/login
  295: ErrorDocument	  500 /adm/errorhandler
  296: </Location>
  297: 
  298: <Location /adm/login>
  299: SetHandler perl-script
  300: PerlHandler Apache::lonlogin
  301: </Location>
  302: 
  303: <Location /adm/logout>
  304: PerlAccessHandler       Apache::lonacc
  305: SetHandler perl-script
  306: PerlHandler Apache::lonlogout
  307: ErrorDocument     403 /adm/login
  308: </Location>
  309: 
  310: <Location /adm/authenticate>
  311: SetHandler perl-script
  312: PerlHandler Apache::lonauth
  313: </Location>
  314: 
  315: <Location /adm/annotations>
  316: PerlAccessHandler       Apache::lonacc
  317: SetHandler perl-script
  318: PerlHandler Apache::admannotations
  319: ErrorDocument     403 /adm/login
  320: ErrorDocument	  500 /adm/errorhandler
  321: </Location>
  322: 
  323: <Location /adm/bookmarks>
  324: PerlAccessHandler       Apache::lonacc
  325: SetHandler perl-script
  326: PerlHandler Apache::admbookmarks
  327: ErrorDocument     403 /adm/login
  328: ErrorDocument	  500 /adm/errorhandler
  329: </Location>
  330: 
  331: <Location /adm/flip>
  332: PerlAccessHandler       Apache::lonacc
  333: SetHandler perl-script
  334: PerlHandler Apache::lonpageflip
  335: PerlCleanupHandler Apache::lonpageflip::cleanup
  336: ErrorDocument     406 /adm/roles
  337: ErrorDocument     403 /adm/login
  338: ErrorDocument	  500 /adm/errorhandler
  339: </Location>
  340: 
  341: <Location /adm/ambiguous>
  342: PerlAccessHandler       Apache::lonacc
  343: SetHandler perl-script
  344: PerlHandler Apache::lonambiguous
  345: PerlCleanupHandler Apache::lonambiguous::cleanup
  346: ErrorDocument     403 /adm/login
  347: ErrorDocument	  500 /adm/errorhandler
  348: </Location>
  349: 
  350: <Location /adm/email>
  351: PerlAccessHandler       Apache::lonacc
  352: SetHandler perl-script
  353: PerlHandler Apache::lonmsg
  354: ErrorDocument     403 /adm/login
  355: ErrorDocument	  500 /adm/errorhandler
  356: </Location>
  357: 
  358: <Location /adm/parmset>
  359: PerlAccessHandler       Apache::lonacc
  360: SetHandler perl-script
  361: PerlHandler Apache::lonparmset
  362: ErrorDocument     403 /adm/login
  363: ErrorDocument     406 /adm/roles
  364: ErrorDocument	  500 /adm/errorhandler
  365: </Location>
  366: 
  367: <Location /adm/wizard>
  368: PerlAccessHandler       Apache::lonacc
  369: SetHandler perl-script
  370: PerlHandler Apache::lonwizard
  371: ErrorDocument     403 /adm/login
  372: ErrorDocument     406 /adm/roles
  373: ErrorDocument	  500 /adm/errorhandler
  374: </Location>
  375: 
  376: <Location /adm/grades>
  377: PerlAccessHandler       Apache::lonacc
  378: SetHandler perl-script
  379: PerlHandler Apache::grades
  380: ErrorDocument     403 /adm/login
  381: ErrorDocument     406 /adm/roles
  382: ErrorDocument	  500 /adm/errorhandler
  383: </Location>
  384: 
  385: <Location /adm/createcourse>
  386: PerlAccessHandler       Apache::lonacc
  387: SetHandler perl-script
  388: PerlHandler Apache::loncreatecourse
  389: ErrorDocument     403 /adm/login
  390: ErrorDocument     406 /adm/roles
  391: ErrorDocument	  500 /adm/errorhandler
  392: </Location>
  393: 
  394: <Location /adm/createuser>
  395: PerlAccessHandler       Apache::lonacc
  396: SetHandler perl-script
  397: PerlHandler Apache::loncreateuser
  398: ErrorDocument     403 /adm/login
  399: ErrorDocument     406 /adm/roles
  400: ErrorDocument	  500 /adm/errorhandler
  401: </Location>
  402: 
  403: <Location /adm/publish>
  404: PerlAccessHandler       Apache::lonacc
  405: SetHandler perl-script
  406: PerlHandler Apache::lonpublisher
  407: ErrorDocument     403 /adm/login
  408: ErrorDocument     404 /adm/notfound.html
  409: ErrorDocument     406 /adm/unauthorized
  410: ErrorDocument	  500 /adm/errorhandler
  411: </Location>
  412: 
  413: <LocationMatch "^/+\~.*/$">
  414: PerlAccessHandler       Apache::loncacc
  415: SetHandler perl-script
  416: PerlHandler Apache::lonpubdir
  417: ErrorDocument     403 /adm/login
  418: ErrorDocument     404 /adm/notfound.html
  419: ErrorDocument     406 /adm/unauthorized
  420: ErrorDocument	  500 /adm/errorhandler
  421: </LocationMatch>
  422: 
  423: <Location /adm/pubdir>
  424: PerlAccessHandler       Apache::lonacc
  425: SetHandler perl-script
  426: PerlHandler Apache::lonpubdir
  427: ErrorDocument     403 /adm/login
  428: ErrorDocument     404 /adm/notfound.html
  429: ErrorDocument     406 /adm/unauthorized
  430: ErrorDocument	  500 /adm/errorhandler
  431: </Location>
  432: 
  433: <Location /adm/unauthorized>
  434: PerlAccessHandler       Apache::lonacc
  435: SetHandler perl-script
  436: PerlHandler Apache::lonunauthorized
  437: ErrorDocument     403 /adm/login
  438: ErrorDocument     404 /adm/notfound.html
  439: ErrorDocument	  500 /adm/errorhandler
  440: </Location>
  441: 
  442: <Location /adm/retrieve>
  443: PerlAccessHandler       Apache::lonacc
  444: SetHandler perl-script
  445: PerlHandler Apache::lonretrieve
  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/cfile>
  453: PerlAccessHandler       Apache::lonacc
  454: SetHandler perl-script
  455: PerlHandler Apache::loncfile
  456: ErrorDocument     403 /adm/login
  457: ErrorDocument     404 /adm/notfound.html
  458: ErrorDocument     406 /adm/unauthorized
  459: ErrorDocument	  500 /adm/errorhandler
  460: </Location>
  461: 
  462: <Location /adm/diff>
  463: PerlAccessHandler       Apache::lonacc
  464: SetHandler perl-script
  465: PerlHandler Apache::londiff
  466: ErrorDocument     403 /adm/login
  467: ErrorDocument     404 /adm/notfound.html
  468: ErrorDocument     406 /adm/unauthorized
  469: ErrorDocument	  500 /adm/errorhandler
  470: </Location>
  471: 
  472: <Location /adm/upload>
  473: PerlAccessHandler       Apache::lonacc
  474: SetHandler perl-script
  475: PerlHandler Apache::lonupload
  476: ErrorDocument     403 /adm/login
  477: ErrorDocument     404 /adm/notfound.html
  478: ErrorDocument     406 /adm/unauthorized
  479: ErrorDocument	  500 /adm/errorhandler
  480: </Location>
  481: 
  482: <Location /adm/assesscalc>
  483: PerlAccessHandler       Apache::lonacc
  484: SetHandler perl-script
  485: PerlHandler Apache::lonspreadsheet
  486: ErrorDocument     403 /adm/login
  487: ErrorDocument     406 /adm/roles
  488: ErrorDocument     413 /adm/overloaded.txt
  489: ErrorDocument	  500 /adm/errorhandler
  490: </Location>
  491: 
  492: <Location /adm/studentcalc>
  493: PerlAccessHandler       Apache::lonacc
  494: SetHandler perl-script
  495: PerlHandler Apache::lonspreadsheet
  496: ErrorDocument     403 /adm/login
  497: ErrorDocument     406 /adm/roles
  498: ErrorDocument     413 /adm/overloaded.txt
  499: ErrorDocument	  500 /adm/errorhandler
  500: </Location>
  501: 
  502: <Location /adm/classcalc>
  503: PerlAccessHandler       Apache::lonacc
  504: SetHandler perl-script
  505: PerlHandler Apache::lonspreadsheet
  506: ErrorDocument     403 /adm/login
  507: ErrorDocument     406 /adm/roles
  508: ErrorDocument     413 /adm/overloaded.txt
  509: ErrorDocument	  500 /adm/errorhandler
  510: </Location>
  511: 
  512: <Location /adm/dropadd>
  513: PerlAccessHandler       Apache::lonacc
  514: SetHandler perl-script
  515: PerlHandler Apache::londropadd
  516: ErrorDocument     403 /adm/login
  517: ErrorDocument     406 /adm/roles
  518: ErrorDocument	  500 /adm/errorhandler
  519: </Location>
  520: 
  521: <Location /adm/populate>
  522: PerlAccessHandler       Apache::lonacc
  523: SetHandler perl-script
  524: PerlHandler Apache::lonpopulate
  525: ErrorDocument     403 /adm/login
  526: ErrorDocument     406 /adm/roles
  527: ErrorDocument     500 /adm/errorhandler
  528: </Location>
  529: 
  530: <Location /adm/managekeys>
  531: PerlAccessHandler       Apache::lonacc
  532: SetHandler perl-script
  533: PerlHandler Apache::lonmanagekeys
  534: ErrorDocument     403 /adm/login
  535: ErrorDocument     406 /adm/roles
  536: ErrorDocument	  500 /adm/errorhandler
  537: </Location>
  538: 
  539: <Location /adm/printout>
  540: PerlAccessHandler       Apache::lonacc
  541: SetHandler perl-script
  542: PerlHandler Apache::lonprintout
  543: ErrorDocument     403 /adm/login
  544: ErrorDocument     413 /adm/overloaded.txt
  545: ErrorDocument	  500 /adm/errorhandler
  546: </Location>
  547: 
  548: <Location /adm/feedback>
  549: PerlAccessHandler       Apache::lonacc
  550: SetHandler perl-script
  551: PerlHandler Apache::lonfeedback
  552: ErrorDocument     403 /adm/login
  553: ErrorDocument	  500 /adm/errorhandler
  554: </Location>
  555: 
  556: <Location /adm/coursedocs>
  557: PerlAccessHandler       Apache::lonacc
  558: SetHandler perl-script
  559: PerlHandler Apache::londocs
  560:  PerlCleanupHandler Apache::londocs::untiehash
  561: ErrorDocument     403 /adm/login
  562: ErrorDocument	  500 /adm/errorhandler
  563: </Location>
  564: 
  565: <Location /adm/announcements>
  566: PerlAccessHandler       Apache::lonacc
  567: SetHandler perl-script
  568: PerlHandler Apache::lonannounce
  569: ErrorDocument     403 /adm/login
  570: ErrorDocument	  500 /adm/errorhandler
  571: </Location>
  572: 
  573: <Location /adm/chat>
  574: PerlAccessHandler       Apache::lonacc
  575: SetHandler perl-script
  576: PerlHandler Apache::lonchat
  577: ErrorDocument	  500 /adm/errorhandler
  578: </Location>
  579: 
  580: <Location /adm/chatfetch>
  581: PerlAccessHandler       Apache::lonacc
  582: SetHandler perl-script
  583: PerlHandler Apache::lonchatfetch
  584: ErrorDocument     413 /adm/overloaded.txt
  585: ErrorDocument	  500 /adm/errorhandler
  586: </Location>
  587: 
  588: <Location /adm/evaluate>
  589: PerlAccessHandler       Apache::lonacc
  590: SetHandler perl-script
  591: PerlHandler Apache::lonevaluate
  592: ErrorDocument     403 /adm/login
  593: ErrorDocument	  500 /adm/errorhandler
  594: </Location>
  595: 
  596: <Location /adm/preferences>
  597: PerlAccessHandler       Apache::lonacc
  598: SetHandler perl-script
  599: PerlHandler Apache::lonpreferences
  600: ErrorDocument     403 /adm/login
  601: ErrorDocument	  500 /adm/errorhandler
  602: </Location>
  603: 
  604: <Location /adm/assignments>
  605: PerlAccessHandler       Apache::lonacc
  606: SetHandler perl-script
  607: PerlHandler Apache::lonassignments
  608: ErrorDocument     403 /adm/login
  609: ErrorDocument     406 /adm/roles
  610: ErrorDocument	  500 /adm/errorhandler
  611: </Location>
  612: 
  613: <Location /adm/communicate>
  614: PerlAccessHandler       Apache::lonacc
  615: SetHandler perl-script
  616: PerlHandler Apache::loncommunicate
  617: ErrorDocument     403 /adm/login
  618: ErrorDocument	  500 /adm/errorhandler
  619: </Location>
  620: 
  621: <Location /adm/searchcat>
  622: PerlAccessHandler       Apache::lonacc
  623: SetHandler perl-script
  624: PerlHandler Apache::lonsearchcat
  625: PerlCleanupHandler Apache::lonsearchcat::cleanup
  626: ErrorDocument     403 /adm/login
  627: ErrorDocument     413 /adm/overloaded.txt
  628: ErrorDocument	  500 /adm/errorhandler
  629: </Location>
  630: 
  631: <Location /adm/navmaps>
  632: PerlAccessHandler       Apache::lonacc
  633: SetHandler perl-script
  634: PerlHandler Apache::lonnavmaps
  635: ErrorDocument     403 /adm/login
  636: ErrorDocument     406 /adm/roles
  637: ErrorDocument	  500 /adm/errorhandler
  638: </Location>
  639: 
  640: <Location /adm/quickgrades>
  641: PerlAccessHandler       Apache::lonacc
  642: SetHandler perl-script
  643: PerlHandler Apache::lonquickgrades
  644: ErrorDocument     403 /adm/login
  645: ErrorDocument     406 /adm/roles
  646: ErrorDocument     500 /adm/errorhandler
  647: </Location>
  648: 
  649: <Location /adm/groupsort>
  650: PerlAccessHandler	Apache::lonacc
  651: SetHandler perl-script
  652: PerlHandler Apache::groupsort
  653: PerlCleanupHandler Apache::groupsort::cleanup
  654: ErrorDocument     403 /adm/login
  655: ErrorDocument	  500 /adm/errorhandler
  656: </Location>
  657: 
  658: <Location /adm/errorhandler>
  659: SetHandler perl-script
  660: PerlHandler Apache::lonerrorhandler
  661: </Location>
  662: 
  663: <LocationMatch "^/adm/help/.*\.hlp$">
  664: SetHandler perl-script
  665: PerlHandler Apache::lonhelp
  666: </LocationMatch>
  667: 
  668: # ------------------------------------------------- Backdoor Adm Tests/Programs
  669: 
  670: <Location /cgi-bin/loncron.pl>
  671: AuthName "LON-CAPA Network Administration"
  672: AuthType Basic
  673: AuthUserFile /home/httpd/lonTabs/htpasswd
  674: require user lonadm
  675: </Location>
  676: 
  677: <Location /cgi-bin/userstatus.pl>
  678: AuthName "LON-CAPA Network Administration"
  679: AuthType Basic
  680: AuthUserFile /home/httpd/lonTabs/htpasswd
  681: require user lonadm
  682: </Location>
  683: 
  684: <Location /cgi-bin/lonversions.pl>
  685: AuthName "LON-CAPA Network Administration"
  686: AuthType Basic
  687: AuthUserFile /home/httpd/lonTabs/htpasswd
  688: require user lonadm
  689: </Location>
  690: 
  691: <Location /cgi-bin/clusterstatus.pl>
  692: AuthName "LON-CAPA Network Administration"
  693: AuthType Basic
  694: AuthUserFile /home/httpd/lonTabs/htpasswd
  695: require user lonadm
  696: </Location>
  697: 
  698: <Location /cgi-bin/metadata_keywords.pl>
  699: AuthName "LON-CAPA Network Administration"
  700: AuthType Basic
  701: AuthUserFile /home/httpd/lonTabs/htpasswd
  702: require user lonadm
  703: </Location>
  704: 
  705: <Location /cgi-bin/metadata_harvest.pl>
  706: AuthName "harvest"
  707: AuthType Basic
  708: AuthUserFile /home/httpd/lonTabs/htpasswd
  709: require user  reaper
  710: </Location>
  711: 
  712: <Location /cgi-bin/takeoffline.pl>
  713: AuthName "Offline"
  714: AuthType Basic
  715: AuthUserFile /home/httpd/lonTabs/htpasswd
  716: require user  offline
  717: </Location>
  718: 
  719: <Location /cgi-bin/takeonline.pl>
  720: AuthName "Offline"
  721: AuthType Basic
  722: AuthUserFile /home/httpd/lonTabs/htpasswd
  723: require user  offline
  724: </Location>
  725: 
  726: <Location /adm/test>
  727: AuthName "LON-CAPA Network Administration"
  728: AuthType Basic
  729: AuthUserFile /home/httpd/lonTabs/htpasswd
  730: require user lonadm
  731: SetHandler perl-script
  732: PerlAccessHandler Apache::lonacc
  733: PerlHandler Apache::lontest
  734: </Location>
  735: 
  736: # ------------------------------------------------------- Shutting down a child
  737: 
  738: PerlChildExitHandler Apache::lonnet::goodbye
  739: 
  740: #
  741: # LON-CAPA Section (extensions to access.conf permission configuration)
  742: #
  743: # =========================================================== Directory Options
  744: 
  745: # Start out with "no"
  746: 
  747: <Directory />
  748: Options None
  749: AllowOverride None
  750: </Directory>
  751: 
  752: # Yes to symbolic links and server-side includes
  753: 
  754: <Directory /home/httpd/html>
  755: Options Includes FollowSymLinks
  756: AllowOverride None
  757: order allow,deny
  758: allow from all
  759: </Directory>
  760: 
  761: # If it is in cgi-bin, then it can be executed as a CGI script.
  762: 
  763: <Directory /home/httpd/cgi-bin>
  764: AllowOverride None
  765: Options ExecCGI
  766: </Directory>
  767: 
  768: # ============================================================= Access Handlers
  769: 
  770: # ------------------------------------------------- Allow server-status reports
  771: <Location /server-status>
  772: SetHandler server-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 LON-CAPA "low-level" connection status reports
  780: <Location /lon-status>
  781: AuthName "LON-CAPA Network Administration"
  782: AuthType Basic
  783: AuthUserFile /home/httpd/lonTabs/htpasswd
  784: require user lonadm
  785: </Location>
  786: 
  787: # ------------------- Allow access to local system documentation from localhost
  788: Alias /doc /usr/doc
  789: <Directory /usr/doc>
  790: order deny,allow
  791: deny from all
  792: allow from localhost
  793: Options Indexes FollowSymLinks
  794: </Directory>
  795: 
  796: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  797: # ====================================== Internal Settings / Perl Configuration
  798: 
  799: PerlSetVar	 lonVersion   '<!-- VERSION -->'
  800: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  801: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  802: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  803: PerlSetVar       lonIconsURL  /adm/lonIcons
  804: PerlSetVar       londPort     5663
  805: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  806: PerlSetVar       lonDaemons   /home/httpd/perl
  807: PerlSetVar       lonSockDir   /home/httpd/sockets
  808: PerlSetVar       lonDocRoot   /home/httpd/html
  809: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  810: 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
  811: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  812: PerlSetVar       lonScansDir  /home/httpd/scantron
  813: PerlSetVar       lonScriptTimeout 10
  814: # -----------------------------------------------------------------------------
  815: # NOTE: lonSqlAccess key is the password for the MySQL user
  816: # www@localhost.  This value must always be "localhostkey".
  817: # The only security risk occurs when somebody logs in as 'www' on your system
  818: # (in which case you have much bigger problems than whether or not they
  819: # can access the non-authoritative loncapa database on your machine).
  820: 
  821: PerlSetVar       lonSqlAccess   localhostkey
  822: 
  823: # -----------------------------------------------------------------------------
  824: # lonttpdPort is the port used by the lightweight graphics httpd server
  825: # not the main Apache server
  826: PerlSetVar       lonhttpdPort  8080
  827: 
  828: 
  829: 
  830: # ====================================== Include machine-specific configuration
  831: 
  832: Include conf/loncapa.conf
  833: 
  834: # ================================================= Include local configuration
  835: 
  836: Include conf/loncapa_apache_local*.conf
  837: 
  838: # ================================================== Initiate mod_perl starting
  839: 
  840: PerlRequire      conf/startup.pl
  841: <IfDefine !MODPERL2>
  842: PerlFreshRestart On
  843: </IfDefine>

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