File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.146: download - view: text, annotated - select for diffs
Fri Jul 7 22:00:49 2006 UTC (17 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
grppg replaces with smppg for group homepages.  Context determined from course domain and course number in URL.

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

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