File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.101: download - view: text, annotated - select for diffs
Fri Dec 10 14:57:47 2004 UTC (19 years, 5 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
Fix bug #3654.  Work on topframe in CSTR with remote. Static /publisher/publisher.html replaced with dynamic lonpubmenu.pm that includes appropriate buttons depending on whether page being displayed in lower frame is a directory listing or a resource.  Known issues: modifications required to language files to translate button names (see texthash in lonpubmenu.pm)

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.101 2004/12/10 14:57:47 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: PerlCleanupHandler	Apache::lonnet::save_cache
   47: 
   48: #PerlWarn On
   49: <LocationMatch "^/+res.*">
   50: PerlAccessHandler       Apache::lonacc
   51: PerlHeaderParserHandler Apache::lonrep
   52: ErrorDocument     403 /adm/login
   53: ErrorDocument     404 /adm/notfound.html
   54: ErrorDocument     406 /adm/roles
   55: ErrorDocument	  500 /adm/errorhandler
   56: </LocationMatch>
   57: 
   58: <LocationMatch "^/+enc.*">
   59: PerlAccessHandler       Apache::lonenc
   60: ErrorDocument     403 /adm/login
   61: ErrorDocument     404 /adm/notfound.html
   62: ErrorDocument     406 /adm/roles
   63: ErrorDocument	  500 /adm/errorhandler
   64: </LocationMatch>
   65: 
   66: <Location /adm/portfolio>
   67: PerlAccessHandler Apache::lonacc
   68: SetHandler perl-script
   69: PerlHandler Apache::portfolio
   70: </Location>
   71: 
   72: <LocationMatch "\.portfolio$">
   73: SetHandler perl-script
   74: PerlHandler Apache::portfolio
   75: </LocationMatch>
   76: 
   77: 
   78: 
   79: <LocationMatch "^/+userfiles.*">
   80: PerlAccessHandler       Apache::lontokacc
   81: PerlCleanupHandler	Apache::lontokacc::removefile
   82: </LocationMatch>
   83: 
   84: <LocationMatch "^/+uploaded.*">
   85: PerlAccessHandler	Apache::lonacc
   86: PerlHeaderParserHandler Apache::lonuploadrep
   87: ErrorDocument     403 /adm/login
   88: ErrorDocument     404 /adm/notfound.html
   89: ErrorDocument     406 /adm/roles
   90: ErrorDocument	  500 /adm/errorhandler
   91: </LocationMatch>
   92: 
   93: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
   94: PerlAccessHandler	Apache::lonuploadedacc
   95: </LocationMatch>
   96: 
   97: 
   98: <LocationMatch "^/+uploaded/.*\.page$">
   99: SetHandler perl-script
  100: PerlHandler Apache::lonpage
  101: </LocationMatch>
  102: 
  103: <LocationMatch "^/+uploaded/.*\.sequence$">
  104: SetHandler perl-script
  105: PerlHandler Apache::lonsequence
  106: </LocationMatch>
  107: 
  108: <LocationMatch "^/+public/.*/syllabus$">
  109: PerlAccessHandler	Apache::lonacc
  110: SetHandler              perl-script
  111: PerlHandler             Apache::lonsyllabus
  112: ErrorDocument     404 /adm/notfound.html
  113: ErrorDocument	  500 /adm/errorhandler
  114: </LocationMatch>
  115: 
  116: <LocationMatch "^/adm/.*/aboutme$">
  117: PerlAccessHandler	Apache::lonacc
  118: SetHandler              perl-script
  119: PerlHandler             Apache::lonaboutme
  120: ErrorDocument     404 /adm/notfound.html
  121: ErrorDocument     406 /adm/notinit.html
  122: ErrorDocument	  500 /adm/errorhandler
  123: </LocationMatch>
  124: 
  125: <LocationMatch "^/adm/.*/smppg$">
  126: PerlAccessHandler	Apache::lonacc
  127: SetHandler              perl-script
  128: PerlHandler             Apache::lonsimplepage
  129: ErrorDocument     404 /adm/notfound.html
  130: ErrorDocument     406 /adm/notinit.html
  131: ErrorDocument	  500 /adm/errorhandler
  132: </LocationMatch>
  133: 
  134: <LocationMatch "^/adm/.*/bulletinboard$">
  135: PerlAccessHandler	Apache::lonacc
  136: SetHandler              perl-script
  137: PerlHandler             Apache::londatecheck
  138: PerlHandler             Apache::lonbulletin
  139: ErrorDocument     404 /adm/notfound.html
  140: ErrorDocument     406 /adm/notinit.html
  141: ErrorDocument	  500 /adm/errorhandler
  142: </LocationMatch>
  143: 
  144: <LocationMatch "\.problem/smpedit$">
  145: PerlAccessHandler	Apache::lonacc
  146: SetHandler              perl-script
  147: PerlHandler             Apache::lonsimpleproblemedit
  148: ErrorDocument     404 /adm/notfound.html
  149: ErrorDocument     406 /adm/notinit.html
  150: ErrorDocument	  500 /adm/errorhandler
  151: </LocationMatch>
  152: 
  153: <LocationMatch "^/+priv.*">
  154: PerlAccessHandler Apache::loncacc
  155: SetHandler        perl-script
  156: PerlHandler       Apache::lonconstruct
  157: ErrorDocument     403 /adm/login
  158: ErrorDocument     404 /adm/notfound.html
  159: ErrorDocument     406 /adm/unauthorized
  160: ErrorDocument	  500 /adm/errorhandler
  161: </LocationMatch>
  162: 
  163: <LocationMatch "^/+raw.*">
  164: PerlAccessHandler Apache::lonracc
  165: </LocationMatch>
  166: 
  167: <LocationMatch "^/+\~.*">
  168: PerlAccessHandler Apache::loncacc
  169: ErrorDocument     403 /adm/login
  170: ErrorDocument     404 /adm/notfound.html
  171: ErrorDocument     406 /adm/unauthorized
  172: ErrorDocument	  500 /adm/errorhandler
  173: AllowOverride None
  174: </LocationMatch>
  175: 
  176: <LocationMatch "^/adm/helper/.*\.helper$">
  177: PerlAccessHandler Apache::lonacc
  178: SetHandler        perl-script
  179: PerlHandler       Apache::lonhelper
  180: ErrorDocument     403 /adm/login
  181: ErrorDocument     404 /adm/notfound.html
  182: ErrorDocument     406 /adm/unauthorized
  183: ErrorDocument     500 /adm/errorhandler
  184: </LocationMatch>
  185: 
  186: <LocationMatch "/prtspool">
  187: PerlAccessHandler Apache::lonacc
  188: ErrorDocument     403 /adm/login
  189: ErrorDocument     404 /adm/notfound.html
  190: ErrorDocument     406 /adm/roles
  191: ErrorDocument     413 /adm/overloaded.txt
  192: ErrorDocument	  500 /adm/errorhandler
  193: </LocationMatch>
  194: # ------------------------------------------------------------------------- RAT
  195: 
  196: <LocationMatch "^/\~.*\.sequence$">
  197: SetHandler perl-script
  198: PerlHandler Apache::lonratedt
  199: </LocationMatch>
  200: 
  201: <LocationMatch "^/\~.*\.page$">
  202: SetHandler perl-script
  203: PerlHandler Apache::lonratedt
  204: </LocationMatch>
  205: 
  206: <LocationMatch "^/\~.*\/ratserver$">
  207: SetHandler perl-script
  208: PerlHandler Apache::lonratsrv
  209: </LocationMatch>
  210: 
  211: <LocationMatch "^/\~.*\/adveditmenu$">
  212: SetHandler perl-script
  213: PerlHandler Apache::lonratmenu
  214: </LocationMatch>
  215: 
  216: <Location /adm/ratparms>
  217: PerlAccessHandler       Apache::lonacc
  218: SetHandler perl-script
  219: PerlHandler Apache::lonratparms
  220: ErrorDocument     403 /adm/login
  221: ErrorDocument	  500 /adm/errorhandler
  222: </Location>
  223: 
  224: # --------------------------------------------- Resource Space Content Handlers
  225: 
  226: <LocationMatch "^/+res.*/$">
  227: SetHandler perl-script
  228: PerlHandler Apache::lonindexer
  229: PerlCleanupHandler Apache::lonindexer::cleanup
  230: </LocationMatch>
  231: 
  232: <LocationMatch "^/+(res|\~).*\.tex$">
  233: SetHandler perl-script
  234: PerlHandler Apache::lontex
  235: </LocationMatch>
  236: 
  237: <LocationMatch "^/+res/.*\.page$">
  238: SetHandler perl-script
  239: PerlHandler Apache::lonpage
  240: </LocationMatch>
  241: 
  242: <LocationMatch "^/+res/.*\.sequence$">
  243: SetHandler perl-script
  244: PerlHandler Apache::lonsequence
  245: </LocationMatch>
  246: 
  247: <LocationMatch "^/+(res|\~|public|uploaded|adm).*\.meta$">
  248: SetHandler perl-script
  249: PerlHandler Apache::lonmeta
  250: ErrorDocument     413 /adm/overloaded.txt
  251: </LocationMatch>
  252: 
  253: <LocationMatch "^/adm/bombs/">
  254: SetHandler perl-script
  255: PerlAccessHandler Apache::lonacc
  256: PerlHandler Apache::lonmeta
  257: </LocationMatch>
  258: 
  259: 
  260: 
  261: <LocationMatch "^/+(res|\~).*\.rights$">
  262: SetHandler perl-script
  263: PerlHandler Apache::lonrights
  264: </LocationMatch>
  265: 
  266: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
  267: SetHandler perl-script
  268: PerlHandler Apache::londatecheck
  269: PerlHandler Apache::lonxml
  270: </LocationMatch>
  271: 
  272: <LocationMatch "^/+(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
  273: SetHandler perl-script
  274: PerlHandler Apache::lonhomework
  275: </LocationMatch>
  276: 
  277: <LocationMatch "^/adm/wrapper/">
  278: PerlAccessHandler       Apache::lonacc
  279: SetHandler perl-script
  280: PerlHandler Apache::lonwrapper
  281: ErrorDocument     403 /adm/login
  282: ErrorDocument	  500 /adm/errorhandler
  283: </LocationMatch>
  284: 
  285: <LocationMatch "^/adm/source/">
  286: PerlAccessHandler       Apache::lonacc
  287: SetHandler perl-script
  288: PerlHandler Apache::lonsource
  289: ErrorDocument     403 /adm/login
  290: ErrorDocument     406 /adm/roles
  291: ErrorDocument	  500 /adm/errorhandler
  292: </LocationMatch>
  293: 
  294: 
  295: <LocationMatch "^/adm/localize/">
  296: PerlAccessHandler       Apache::lonacc
  297: SetHandler perl-script
  298: PerlHandler Apache::lonlocal
  299: ErrorDocument     403 /adm/login
  300: ErrorDocument	  500 /adm/errorhandler
  301: </LocationMatch>
  302: 
  303: # -------------------------------------------------------------- Admin Programs
  304: 
  305: <Location /adm/randomlabel.png>
  306: PerlAccessHandler       Apache::lonacc
  307: SetHandler perl-script
  308: PerlHandler Apache::randomlylabel
  309: ErrorDocument     403 /adm/login
  310: ErrorDocument	  500 /adm/errorhandler
  311: </Location>
  312: 
  313: <Location /adm/imagechoice>
  314: PerlAccessHandler       Apache::lonacc
  315: SetHandler perl-script
  316: PerlHandler Apache::imagechoice
  317: ErrorDocument     403 /adm/login
  318: ErrorDocument	  500 /adm/errorhandler
  319: </Location>
  320: 
  321: <Location /adm/statistics>
  322: PerlAccessHandler       Apache::lonacc
  323: SetHandler perl-script
  324: PerlHandler Apache::lonstatistics
  325: ErrorDocument     403 /adm/login
  326: ErrorDocument     413 /adm/overloaded.txt
  327: ErrorDocument	  500 /adm/errorhandler
  328: </Location>
  329: 
  330: <Location /adm/trackstudent>
  331: PerlAccessHandler       Apache::lonacc
  332: SetHandler perl-script
  333: PerlHandler Apache::lontrackstudent
  334: ErrorDocument     403 /adm/login
  335: ErrorDocument     413 /adm/overloaded.txt
  336: ErrorDocument	  500 /adm/errorhandler
  337: </Location>
  338: 
  339: <Location /adm/roles>
  340: PerlAccessHandler       Apache::lonacc
  341: SetHandler perl-script
  342: PerlHandler Apache::lonroles
  343: ErrorDocument     403 /adm/login
  344: ErrorDocument	  500 /adm/errorhandler
  345: </Location>
  346: 
  347: <Location /adm/menu>
  348: PerlAccessHandler       Apache::lonacc
  349: SetHandler perl-script
  350: PerlHandler Apache::lonmenu
  351: ErrorDocument     403 /adm/login
  352: ErrorDocument	  500 /adm/errorhandler
  353: </Location>
  354: 
  355: <Location /adm/remote>
  356: PerlAccessHandler       Apache::lonacc
  357: SetHandler perl-script
  358: PerlHandler Apache::lonremote
  359: ErrorDocument     403 /adm/login
  360: ErrorDocument	  500 /adm/errorhandler
  361: </Location>
  362: 
  363: <Location /adm/pickstudent>
  364: PerlAccessHandler       Apache::lonacc
  365: SetHandler perl-script
  366: PerlHandler Apache::lonpickstudent
  367: ErrorDocument     403 /adm/login
  368: ErrorDocument	  500 /adm/errorhandler
  369: </Location>
  370: 
  371: <Location /adm/pickcourse>
  372: PerlAccessHandler       Apache::lonacc
  373: SetHandler perl-script
  374: PerlHandler Apache::lonpickcourse
  375: ErrorDocument     403 /adm/login
  376: ErrorDocument	  500 /adm/errorhandler
  377: </Location>
  378: 
  379: <Location /adm/pickcode>
  380: PerlAccessHandler       Apache::lonacc
  381: SetHandler perl-script
  382: PerlHandler Apache::lonpickcode
  383: ErrorDocument     403 /adm/login
  384: ErrorDocument	  500 /adm/errorhandler
  385: </Location>
  386: 
  387: <Location /adm/login>
  388: SetHandler perl-script
  389: PerlHandler Apache::lonlogin
  390: </Location>
  391: 
  392: <Location /adm/logout>
  393: PerlAccessHandler       Apache::lonacc
  394: SetHandler perl-script
  395: PerlHandler Apache::lonlogout
  396: ErrorDocument     403 /adm/login
  397: </Location>
  398: 
  399: <Location /adm/authenticate>
  400: SetHandler perl-script
  401: PerlHandler Apache::lonauth
  402: </Location>
  403: 
  404: <Location /adm/annotations>
  405: PerlAccessHandler       Apache::lonacc
  406: SetHandler perl-script
  407: PerlHandler Apache::admannotations
  408: ErrorDocument     403 /adm/login
  409: ErrorDocument	  500 /adm/errorhandler
  410: </Location>
  411: 
  412: <Location /adm/spellcheck>
  413: PerlAccessHandler       Apache::lonacc
  414: SetHandler perl-script
  415: PerlHandler Apache::lonspeller
  416: ErrorDocument     403 /adm/login
  417: ErrorDocument	  500 /adm/errorhandler
  418: </Location>
  419: 
  420: <Location /adm/bookmarks>
  421: PerlAccessHandler       Apache::lonacc
  422: SetHandler perl-script
  423: PerlHandler Apache::admbookmarks
  424: ErrorDocument     403 /adm/login
  425: ErrorDocument	  500 /adm/errorhandler
  426: </Location>
  427: 
  428: <Location /adm/flip>
  429: PerlAccessHandler       Apache::lonacc
  430: SetHandler perl-script
  431: PerlHandler Apache::lonpageflip
  432: PerlCleanupHandler Apache::lonpageflip::cleanup
  433: ErrorDocument     406 /adm/roles
  434: ErrorDocument     403 /adm/login
  435: ErrorDocument	  500 /adm/errorhandler
  436: </Location>
  437: 
  438: <Location /adm/ambiguous>
  439: PerlAccessHandler       Apache::lonacc
  440: SetHandler perl-script
  441: PerlHandler Apache::lonambiguous
  442: PerlCleanupHandler Apache::lonambiguous::cleanup
  443: ErrorDocument     403 /adm/login
  444: ErrorDocument	  500 /adm/errorhandler
  445: </Location>
  446: 
  447: <Location /adm/email>
  448: PerlAccessHandler       Apache::lonacc
  449: SetHandler perl-script
  450: PerlHandler Apache::lonmsg
  451: ErrorDocument     403 /adm/login
  452: ErrorDocument	  500 /adm/errorhandler
  453: </Location>
  454: 
  455: <Location /adm/parmset>
  456: PerlAccessHandler       Apache::lonacc
  457: SetHandler perl-script
  458: PerlHandler Apache::lonparmset
  459: ErrorDocument     403 /adm/login
  460: ErrorDocument     406 /adm/roles
  461: ErrorDocument	  500 /adm/errorhandler
  462: </Location>
  463: 
  464: <Location /adm/wizard>
  465: PerlAccessHandler       Apache::lonacc
  466: SetHandler perl-script
  467: PerlHandler Apache::lonwizard
  468: ErrorDocument     403 /adm/login
  469: ErrorDocument     406 /adm/roles
  470: ErrorDocument	  500 /adm/errorhandler
  471: </Location>
  472: 
  473: <Location /adm/grades>
  474: PerlAccessHandler       Apache::lonacc
  475: SetHandler perl-script
  476: PerlHandler Apache::grades
  477: ErrorDocument     403 /adm/login
  478: ErrorDocument     406 /adm/roles
  479: ErrorDocument	  500 /adm/errorhandler
  480: </Location>
  481: 
  482: <Location /adm/createcourse>
  483: PerlAccessHandler       Apache::lonacc
  484: SetHandler perl-script
  485: PerlHandler Apache::loncreatecourse
  486: ErrorDocument     403 /adm/login
  487: ErrorDocument     406 /adm/roles
  488: ErrorDocument	  500 /adm/errorhandler
  489: </Location>
  490: 
  491: <Location /adm/modifycourse>
  492: PerlAccessHandler       Apache::lonacc
  493: SetHandler perl-script
  494: PerlHandler Apache::lonmodifycourse
  495: ErrorDocument     403 /adm/login
  496: ErrorDocument     406 /adm/roles
  497: ErrorDocument     500 /adm/errorhandler
  498: </Location>
  499: 
  500: <Location /adm/createuser>
  501: PerlAccessHandler       Apache::lonacc
  502: SetHandler perl-script
  503: PerlHandler Apache::loncreateuser
  504: ErrorDocument     403 /adm/login
  505: ErrorDocument     406 /adm/roles
  506: ErrorDocument	  500 /adm/errorhandler
  507: </Location>
  508: 
  509: <Location /adm/publish>
  510: PerlAccessHandler       Apache::lonacc
  511: SetHandler perl-script
  512: PerlHandler Apache::lonpublisher
  513: ErrorDocument     403 /adm/login
  514: ErrorDocument     404 /adm/notfound.html
  515: ErrorDocument     406 /adm/unauthorized
  516: ErrorDocument	  500 /adm/errorhandler
  517: </Location>
  518: 
  519: <LocationMatch "^/+\~.*/$">
  520: PerlAccessHandler       Apache::loncacc
  521: SetHandler perl-script
  522: PerlHandler Apache::lonpubdir
  523: ErrorDocument     403 /adm/login
  524: ErrorDocument     404 /adm/notfound.html
  525: ErrorDocument     406 /adm/unauthorized
  526: ErrorDocument	  500 /adm/errorhandler
  527: </LocationMatch>
  528: 
  529: <Location /adm/pubdir>
  530: PerlAccessHandler       Apache::lonacc
  531: SetHandler perl-script
  532: PerlHandler Apache::lonpubdir
  533: ErrorDocument     403 /adm/login
  534: ErrorDocument     404 /adm/notfound.html
  535: ErrorDocument     406 /adm/unauthorized
  536: ErrorDocument	  500 /adm/errorhandler
  537: </Location>
  538: 
  539: <Location /adm/pubmenu>
  540: PerlAccessHandler       Apache::lonacc
  541: SetHandler perl-script
  542: PerlHandler Apache::lonpubmenu
  543: ErrorDocument     403 /adm/login
  544: ErrorDocument     404 /adm/notfound.html
  545: ErrorDocument     406 /adm/unauthorized
  546: ErrorDocument     500 /adm/errorhandler
  547: </Location>
  548: 
  549: <Location /adm/unauthorized>
  550: PerlAccessHandler       Apache::lonacc
  551: SetHandler perl-script
  552: PerlHandler Apache::lonunauthorized
  553: ErrorDocument     403 /adm/login
  554: ErrorDocument     404 /adm/notfound.html
  555: ErrorDocument	  500 /adm/errorhandler
  556: </Location>
  557: 
  558: <Location /adm/retrieve>
  559: PerlAccessHandler       Apache::lonacc
  560: SetHandler perl-script
  561: PerlHandler Apache::lonretrieve
  562: ErrorDocument     403 /adm/login
  563: ErrorDocument     404 /adm/notfound.html
  564: ErrorDocument     406 /adm/unauthorized
  565: ErrorDocument	  500 /adm/errorhandler
  566: </Location>
  567: 
  568: <Location /adm/cfile>
  569: PerlAccessHandler       Apache::lonacc
  570: SetHandler perl-script
  571: PerlHandler Apache::loncfile
  572: ErrorDocument     403 /adm/login
  573: ErrorDocument     404 /adm/notfound.html
  574: ErrorDocument     406 /adm/unauthorized
  575: ErrorDocument	  500 /adm/errorhandler
  576: </Location>
  577: 
  578: <Location /adm/diff>
  579: PerlAccessHandler       Apache::lonacc
  580: SetHandler perl-script
  581: PerlHandler Apache::londiff
  582: ErrorDocument     403 /adm/login
  583: ErrorDocument     404 /adm/notfound.html
  584: ErrorDocument     406 /adm/unauthorized
  585: ErrorDocument	  500 /adm/errorhandler
  586: </Location>
  587: 
  588: <Location /adm/upload>
  589: PerlAccessHandler       Apache::lonacc
  590: SetHandler perl-script
  591: PerlHandler Apache::lonupload
  592: ErrorDocument     403 /adm/login
  593: ErrorDocument     404 /adm/notfound.html
  594: ErrorDocument     406 /adm/unauthorized
  595: ErrorDocument	  500 /adm/errorhandler
  596: </Location>
  597: 
  598: <Location /adm/imsimport>
  599: PerlAccessHandler       Apache::lonacc
  600: SetHandler perl-script
  601: PerlHandler Apache::imsimport
  602: ErrorDocument     403 /adm/login
  603: ErrorDocument     404 /adm/notfound.html
  604: ErrorDocument     406 /adm/unauthorized
  605: ErrorDocument     500 /adm/errorhandler
  606: </Location>
  607: 
  608: <Location /adm/testbank>
  609: PerlAccessHandler       Apache::lonacc
  610: SetHandler perl-script
  611: PerlHandler Apache::testbankimport
  612: ErrorDocument     403 /adm/login
  613: ErrorDocument     404 /adm/notfound.html
  614: ErrorDocument     406 /adm/unauthorized
  615: ErrorDocument     500 /adm/errorhandler
  616: </Location>
  617: 
  618: <Location /adm/assesscalc>
  619: PerlAccessHandler       Apache::lonacc
  620: SetHandler perl-script
  621: PerlHandler Apache::lonspreadsheet
  622: ErrorDocument     403 /adm/login
  623: ErrorDocument     406 /adm/roles
  624: ErrorDocument     413 /adm/overloaded.txt
  625: ErrorDocument	  500 /adm/errorhandler
  626: </Location>
  627: 
  628: <Location /adm/studentcalc>
  629: PerlAccessHandler       Apache::lonacc
  630: SetHandler perl-script
  631: PerlHandler Apache::lonspreadsheet
  632: ErrorDocument     403 /adm/login
  633: ErrorDocument     406 /adm/roles
  634: ErrorDocument     413 /adm/overloaded.txt
  635: ErrorDocument	  500 /adm/errorhandler
  636: </Location>
  637: 
  638: <Location /adm/classcalc>
  639: PerlAccessHandler       Apache::lonacc
  640: SetHandler perl-script
  641: PerlHandler Apache::lonspreadsheet
  642: ErrorDocument     403 /adm/login
  643: ErrorDocument     406 /adm/roles
  644: ErrorDocument     413 /adm/overloaded.txt
  645: ErrorDocument	  500 /adm/errorhandler
  646: </Location>
  647: 
  648: <Location /adm/dropadd>
  649: PerlAccessHandler       Apache::lonacc
  650: SetHandler perl-script
  651: PerlHandler Apache::londropadd
  652: ErrorDocument     403 /adm/login
  653: ErrorDocument     406 /adm/roles
  654: ErrorDocument	  500 /adm/errorhandler
  655: </Location>
  656: 
  657: <Location /adm/viewclasslist>
  658: PerlAccessHandler       Apache::lonacc
  659: SetHandler perl-script
  660: PerlHandler Apache::lonviewclasslist
  661: ErrorDocument     403 /adm/login
  662: ErrorDocument     406 /adm/roles
  663: ErrorDocument	  500 /adm/errorhandler
  664: </Location>
  665: 
  666: <Location /adm/populate>
  667: PerlAccessHandler       Apache::lonacc
  668: SetHandler perl-script
  669: PerlHandler Apache::lonpopulate
  670: ErrorDocument     403 /adm/login
  671: ErrorDocument     406 /adm/roles
  672: ErrorDocument     500 /adm/errorhandler
  673: </Location>
  674: 
  675: <Location /adm/managekeys>
  676: PerlAccessHandler       Apache::lonacc
  677: SetHandler perl-script
  678: PerlHandler Apache::lonmanagekeys
  679: ErrorDocument     403 /adm/login
  680: ErrorDocument     406 /adm/roles
  681: ErrorDocument	  500 /adm/errorhandler
  682: </Location>
  683: 
  684: <Location /adm/printout>
  685: PerlAccessHandler       Apache::lonacc
  686: SetHandler perl-script
  687: PerlHandler Apache::lonprintout
  688: ErrorDocument     403 /adm/login
  689: ErrorDocument     413 /adm/overloaded.txt
  690: ErrorDocument	  500 /adm/errorhandler
  691: </Location>
  692: 
  693: <Location /adm/feedback>
  694: PerlAccessHandler       Apache::lonacc
  695: SetHandler perl-script
  696: PerlHandler Apache::lonfeedback
  697: ErrorDocument     403 /adm/login
  698: ErrorDocument	  500 /adm/errorhandler
  699: </Location>
  700: 
  701: <Location /adm/coursedocs>
  702: PerlAccessHandler       Apache::lonacc
  703: SetHandler perl-script
  704: PerlHandler Apache::londocs
  705:  PerlCleanupHandler Apache::londocs::untiehash
  706: ErrorDocument     403 /adm/login
  707: ErrorDocument	  500 /adm/errorhandler
  708: </Location>
  709: 
  710: <Location /adm/imsimportdocs>
  711: PerlAccessHandler       Apache::lonacc
  712: SetHandler perl-script
  713: PerlHandler Apache::imsimportdocs
  714: ErrorDocument     403 /adm/login
  715: ErrorDocument     500 /adm/errorhandler
  716: </Location>
  717: 
  718: <Location /adm/announcements>
  719: PerlAccessHandler       Apache::lonacc
  720: SetHandler perl-script
  721: PerlHandler Apache::lonannounce
  722: ErrorDocument     403 /adm/login
  723: ErrorDocument	  500 /adm/errorhandler
  724: </Location>
  725: 
  726: <Location /adm/chat>
  727: PerlAccessHandler       Apache::lonacc
  728: SetHandler perl-script
  729: PerlHandler Apache::lonchat
  730: ErrorDocument	  500 /adm/errorhandler
  731: </Location>
  732: 
  733: <Location /adm/chatfetch>
  734: PerlAccessHandler       Apache::lonacc
  735: SetHandler perl-script
  736: PerlHandler Apache::lonchatfetch
  737: ErrorDocument     413 /adm/overloaded.txt
  738: ErrorDocument	  500 /adm/errorhandler
  739: </Location>
  740: 
  741: <Location /adm/evaluate>
  742: PerlAccessHandler       Apache::lonacc
  743: SetHandler perl-script
  744: PerlHandler Apache::lonevaluate
  745: ErrorDocument     403 /adm/login
  746: ErrorDocument	  500 /adm/errorhandler
  747: </Location>
  748: 
  749: <Location /adm/preferences>
  750: PerlAccessHandler       Apache::lonacc
  751: SetHandler perl-script
  752: PerlHandler Apache::lonpreferences
  753: ErrorDocument     403 /adm/login
  754: ErrorDocument	  500 /adm/errorhandler
  755: </Location>
  756: 
  757: <Location /adm/assignments>
  758: PerlAccessHandler       Apache::lonacc
  759: SetHandler perl-script
  760: PerlHandler Apache::lonassignments
  761: ErrorDocument     403 /adm/login
  762: ErrorDocument     406 /adm/roles
  763: ErrorDocument	  500 /adm/errorhandler
  764: </Location>
  765: 
  766: <Location /adm/communicate>
  767: PerlAccessHandler       Apache::lonacc
  768: SetHandler perl-script
  769: PerlHandler Apache::loncommunicate
  770: ErrorDocument     403 /adm/login
  771: ErrorDocument	  500 /adm/errorhandler
  772: </Location>
  773: 
  774: <Location /adm/searchcat>
  775: PerlAccessHandler       Apache::lonacc
  776: SetHandler perl-script
  777: PerlHandler Apache::lonsearchcat
  778: PerlCleanupHandler Apache::lonsearchcat::cleanup
  779: ErrorDocument     403 /adm/login
  780: ErrorDocument     413 /adm/overloaded.txt
  781: ErrorDocument	  500 /adm/errorhandler
  782: </Location>
  783: 
  784: <Location /adm/navmaps>
  785: PerlAccessHandler       Apache::lonacc
  786: SetHandler perl-script
  787: PerlHandler Apache::lonnavmaps
  788: ErrorDocument     403 /adm/login
  789: ErrorDocument     406 /adm/roles
  790: ErrorDocument	  500 /adm/errorhandler
  791: </Location>
  792: 
  793: <Location /adm/quickgrades>
  794: PerlAccessHandler       Apache::lonacc
  795: SetHandler perl-script
  796: PerlHandler Apache::lonquickgrades
  797: ErrorDocument     403 /adm/login
  798: ErrorDocument     406 /adm/roles
  799: ErrorDocument     500 /adm/errorhandler
  800: </Location>
  801: 
  802: <Location /adm/groupsort>
  803: PerlAccessHandler	Apache::lonacc
  804: SetHandler perl-script
  805: PerlHandler Apache::groupsort
  806: PerlCleanupHandler Apache::groupsort::cleanup
  807: ErrorDocument     403 /adm/login
  808: ErrorDocument	  500 /adm/errorhandler
  809: </Location>
  810: 
  811: <Location /adm/errorhandler>
  812: SetHandler perl-script
  813: PerlHandler Apache::lonerrorhandler
  814: </Location>
  815: 
  816: <LocationMatch "^/adm/help/.*\.hlp$">
  817: PerlAccessHandler	Apache::lonacc
  818: SetHandler perl-script
  819: PerlHandler Apache::lonhelp
  820: </LocationMatch>
  821: 
  822: <LocationMatch "^/adm/helpmenu">
  823: PerlAccessHandler       Apache::lonacc
  824: SetHandler perl-script
  825: PerlHandler Apache::lonhelpmenu
  826: </LocationMatch>
  827: 
  828: <LocationMatch "^/adm/support">
  829: PerlAccessHandler       Apache::lonacc
  830: SetHandler perl-script
  831: PerlHandler Apache::lonsupportreq
  832: </LocationMatch>
  833: 
  834: <LocationMatch "^/adm/helpdesk">
  835: SetHandler perl-script
  836: PerlHandler Apache::lonsupportreq
  837: </LocationMatch>
  838: 
  839: # ------------------------------------------------- Backdoor Adm Tests/Programs
  840: 
  841: <Location /cgi-bin/loncron.pl>
  842: AuthName "LON-CAPA Network Administration"
  843: AuthType Basic
  844: AuthUserFile /home/httpd/lonTabs/htpasswd
  845: require user lonadm
  846: </Location>
  847: 
  848: <Location /cgi-bin/userstatus.pl>
  849: AuthName "LON-CAPA Network Administration"
  850: AuthType Basic
  851: AuthUserFile /home/httpd/lonTabs/htpasswd
  852: require user lonadm
  853: </Location>
  854: 
  855: <Location /cgi-bin/lonversions.pl>
  856: AuthName "LON-CAPA Network Administration"
  857: AuthType Basic
  858: AuthUserFile /home/httpd/lonTabs/htpasswd
  859: require user lonadm
  860: </Location>
  861: 
  862: <Location /cgi-bin/clusterstatus.pl>
  863: AuthName "LON-CAPA Network Administration"
  864: AuthType Basic
  865: AuthUserFile /home/httpd/lonTabs/htpasswd
  866: require user lonadm
  867: </Location>
  868: 
  869: <Location /cgi-bin/metadata_keywords.pl>
  870: AuthName "LON-CAPA Network Administration"
  871: AuthType Basic
  872: AuthUserFile /home/httpd/lonTabs/htpasswd
  873: require user lonadm
  874: </Location>
  875: 
  876: <Location /cgi-bin/metadata_harvest.pl>
  877: AuthName "harvest"
  878: AuthType Basic
  879: AuthUserFile /home/httpd/lonTabs/htpasswd
  880: require user  reaper
  881: </Location>
  882: 
  883: <Location /cgi-bin/takeoffline.pl>
  884: AuthName "Offline"
  885: AuthType Basic
  886: AuthUserFile /home/httpd/lonTabs/htpasswd
  887: require user  offline
  888: </Location>
  889: 
  890: <Location /cgi-bin/takeonline.pl>
  891: AuthName "Offline"
  892: AuthType Basic
  893: AuthUserFile /home/httpd/lonTabs/htpasswd
  894: require user  offline
  895: </Location>
  896: 
  897: <Location /adm/test>
  898: AuthName "LON-CAPA Network Administration"
  899: AuthType Basic
  900: AuthUserFile /home/httpd/lonTabs/htpasswd
  901: require user lonadm
  902: SetHandler perl-script
  903: PerlAccessHandler Apache::lonacc
  904: PerlHandler Apache::lontest
  905: </Location>
  906: 
  907: # ------------------------------------------------------- Shutting down a child
  908: 
  909: PerlChildExitHandler Apache::lonnet::goodbye
  910: 
  911: #
  912: # LON-CAPA Section (extensions to access.conf permission configuration)
  913: #
  914: # =========================================================== Directory Options
  915: 
  916: # Start out with "no"
  917: 
  918: <Directory />
  919: Options None
  920: AllowOverride None
  921: </Directory>
  922: 
  923: # Yes to symbolic links and server-side includes
  924: 
  925: <Directory /home/httpd/html>
  926: Options Includes FollowSymLinks
  927: AllowOverride None
  928: order allow,deny
  929: allow from all
  930: </Directory>
  931: 
  932: # If it is in cgi-bin, then it can be executed as a CGI script.
  933: 
  934: <Directory /home/httpd/cgi-bin>
  935: AllowOverride None
  936: Options ExecCGI
  937: </Directory>
  938: 
  939: # ============================================================= Access Handlers
  940: 
  941: # ------------------------------------------------- Allow server-status reports
  942: <Location /server-status>
  943: SetHandler server-status
  944: AuthName "LON-CAPA Network Administration"
  945: AuthType Basic
  946: AuthUserFile /home/httpd/lonTabs/htpasswd
  947: require user lonadm
  948: </Location>
  949: 
  950: # ------------------------ Allow LON-CAPA "low-level" connection status reports
  951: <Location /lon-status>
  952: AuthName "LON-CAPA Network Administration"
  953: AuthType Basic
  954: AuthUserFile /home/httpd/lonTabs/htpasswd
  955: require user lonadm
  956: </Location>
  957: 
  958: # ------------------- Allow access to local system documentation from localhost
  959: Alias /doc /usr/doc
  960: <Directory /usr/doc>
  961: order deny,allow
  962: deny from all
  963: allow from localhost
  964: Options Indexes FollowSymLinks
  965: </Directory>
  966: 
  967: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  968: # ====================================== Internal Settings / Perl Configuration
  969: 
  970: PerlSetVar	 lonVersion   '<!-- VERSION -->'
  971: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  972: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  973: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  974: PerlSetVar       lonIconsURL  /adm/lonIcons
  975: PerlSetVar       londPort     5663
  976: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  977: PerlSetVar       lonDaemons   /home/httpd/perl
  978: PerlSetVar       lonSockDir   /home/httpd/sockets
  979: PerlSetVar       lonDocRoot   /home/httpd/html
  980: PerlSetVar       lonPrtDir    /home/httpd/prtspool
  981: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  982: PerlSetVar       lonBrowsDet  explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&netscape:netscape:msie:netscape\/(\d+\.\d+):9999:7&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/(\d+\.\d+):9999:9999
  983: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  984: PerlSetVar       lonScansDir  /home/httpd/scantron
  985: PerlSetVar       lonScriptTimeout 10
  986: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
  987: PerlSetVar	 FAQHost	http://help.lon-capa.org/
  988: # -----------------------------------------------------------------------------
  989: # NOTE: lonSqlAccess key is the password for the MySQL user
  990: # www@localhost.  This value must always be "localhostkey".
  991: # The only security risk occurs when somebody logs in as 'www' on your system
  992: # (in which case you have much bigger problems than whether or not they
  993: # can access the non-authoritative loncapa database on your machine).
  994: 
  995: PerlSetVar       lonSqlAccess   localhostkey
  996: 
  997: # -----------------------------------------------------------------------------
  998: # lonttpdPort is the port used by the lightweight graphics httpd server
  999: # not the main Apache server
 1000: PerlSetVar       lonhttpdPort  8080
 1001: 
 1002: 
 1003: #----------------------------------------------------------------------------
 1004: #
 1005: #   Parameters used by secure lond/lonc
 1006: 
 1007: #
 1008: #   Secure lond/lonc require ssl certificate and private
 1009: #   key files to function correctly.  The certificate
 1010: #   files need not be terribly secure, but the private key files
 1011: #   should be set up so that only www (the lonc/lond effective user)
 1012: #   can read them.
 1013: # 
 1014: #   The definition below is the full path to the directory that
 1015: #   contains the certificate and key files:
 1016: 
 1017: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1018: 
 1019: #
 1020: #  Secure lond/lonc require two certificates and a private host key.
 1021: #  The certificates required are that of the lonCAPA certificate authority
 1022: #  and the certificate that authority issued to this host.
 1023: #  lonnetCertificateAuthority is the name of the file that contains the
 1024: #                            lonCAPA certificate authority's certificate.
 1025: #  lonnetCertificate is the name of the file that contains the certificate
 1026: #                    issued to the host by the certificate authority.
 1027: #  Both of these variables are names of files assumed to be in 
 1028: #  lonCertificateDirectory:
 1029: 
 1030: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1031: PerlSetVar lonnetCertificate          lonhostcert.pem
 1032: 
 1033: #
 1034: #  To generate the request for a certificate, and to negotiate the
 1035: #  initial ssl connection, the host requires a private key.  This key
 1036: #  is created at lonCAPA install time.  Did we mention above that it
 1037: #  should be set so that only www can read it?  The variale below
 1038: #  is the name of the file relative to lonnetCertificateDirectory
 1039: #  that has the host's private key.  Did we remember to tell you to
 1040: #  keep the permissions on that file set to rw-------  (0600)?
 1041: #  
 1042: 
 1043: PerlSetVar lonnetPrivateKey         lonKey.pem
 1044: 
 1045: # Did we mention that the file described above must have
 1046: # permissions really locked down so that it can't be stolen?
 1047: 
 1048: #-------------------------------------------------------------------------
 1049: 
 1050: #   Parameters that define where all the ssl stuff is that's needed
 1051: #   to generate certificate requests and, on a system that's a CA
 1052: #   the certificate authority.
 1053: #    
 1054: #    SSLProgram    -> Path to the openssl command
 1055: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1056: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1057: #                     Authority.
 1058: #    SSLCAFile     -> Full path to the Certificate authority file 
 1059: #                    (on the cert manager system).
 1060: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1061: #    The following are good for the loncapa redhat installs and
 1062: #    the loncapa certificate authority system:
 1063: #
 1064: PerlSetVar SSLProgram	/usr/bin/openssl
 1065: PerlSetVar SSLDirectory /usr/share/ssl
 1066: PerlSetVar SSLCAConfig  loncapaca
 1067: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1068: PerlSetVar SSLEmail     certificate@lon-capa.org
 1069: 
 1070: #-------------------------------------------------------------------------
 1071: 
 1072: 
 1073: 
 1074: 
 1075: # ====================================== Include machine-specific configuration
 1076: 
 1077: Include conf/loncapa.conf
 1078: 
 1079: # ================================================= Include local configuration
 1080: 
 1081: Include conf/loncapa_apache_local*.conf
 1082: 
 1083: # ================================================== Initiate mod_perl starting
 1084: 
 1085: PerlRequire      conf/startup.pl
 1086: <IfDefine !MODPERL2>
 1087: PerlFreshRestart On
 1088: </IfDefine>

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