File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.92: download - view: text, annotated - select for diffs
Wed Aug 11 18:39:27 2004 UTC (19 years, 9 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
Added /adm/trackstudent and /adm/viewclasslist

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

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