File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.153: download - view: text, annotated - select for diffs
Fri Aug 4 19:05:58 2006 UTC (17 years, 7 months ago) by albertel
Branches: MAIN
CVS tags: version_2_2_0, version_2_1_99_3, HEAD
- swtich to /adm/damin/user/aboutme/portfolio for the portfolio lister
- setting the portfolio listing to be public

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

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