File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.139: download - view: text, annotated - select for diffs
Thu Jun 1 22:29:43 2006 UTC (17 years, 11 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- switching AuthType from Basic -> LONCAPA  and chanign checkauthen to ignore Basic Auth modes, takes care of bug#4804

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

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