File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.150: download - view: text, annotated - select for diffs
Mon Jul 17 17:34:53 2006 UTC (17 years, 9 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- getting student photos to work again

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

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