File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.134: download - view: text, annotated - select for diffs
Wed May 10 21:22:08 2006 UTC (18 years ago) by albertel
Branches: MAIN
CVS tags: HEAD
- allow unathenticated  access to the css handler

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

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