File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.270: download - view: text, annotated - select for diffs
Fri Sep 4 19:36:57 2020 UTC (3 years, 8 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Update URL for LON-CAPA's bugzilla

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: 
    5: # $Id: loncapa_apache.conf,v 1.270 2020/09/04 19:36:57 raeburn Exp $
    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: <IfModule !perl_module>
   22:     LoadModule perl_module       modules/libperl.so
   23: </IfModule>
   24: <IfDefine !MODPERL2>
   25: AddModule mod_perl.c
   26: </IfDefine>
   27: 
   28: <IfDefine MODPERL2>
   29: PerlSetVar	MODPERL2	1
   30: </IfDefine>
   31: # =============================================================== Miscellaneous
   32: 
   33: ServerAdmin consortium@loncapa.org
   34: ExtendedStatus On
   35: #
   36: # LON-CAPA Section (extensions to srm.conf name space servicing)
   37: #
   38: # ===================================================================== Aliases
   39: 
   40: Alias /zipspool/ /home/httpd/zipspool/
   41: Alias /prtspool/ /home/httpd/prtspool/
   42: Alias /captchaspool/ /home/httpd/captchaspool/
   43: Alias /webdav/ /home/httpd/html/priv/
   44: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   45: <IfModule mod_dav_fs.c>
   46:     DAVLockDB /home/httpd/webdav/DAVLock
   47: </IfModule>
   48: 
   49: # ================================================================= Directories
   50: 
   51: # ------------------------------------------------------------- Access Handlers
   52: 
   53: PerlTransHandler	Apache::lontrans
   54: PerlCleanupHandler	Apache::lonacc::cleanup
   55: 
   56: PerlAuthenHandler Apache::checkauthen
   57: PerlSetVar lonOtherAuthen no
   58: 
   59: <IfModule mod_shib>
   60:     PerlAuthenHandler Apache::lonshibauth
   61:     PerlSetVar lonOtherAuthen yes
   62:     PerlSetVar lonOtherAuthenType Shibboleth
   63: </IfModule>
   64: 
   65: #PerlWarn On
   66: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
   67: PerlAuthzHandler	'sub { return OK }' 
   68: </LocationMatch>
   69: 
   70: # Send proper expires header to avoid unnecessary HTTP request for static content
   71: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax|/adm/daxe)">
   72:         ExpiresActive On
   73:         ExpiresDefault "access plus 12 hours"
   74:         Header set Cache-Control "public, no-transform"
   75: </LocationMatch>
   76: 
   77: <LocationMatch "^/+res.*">
   78: 
   79: AuthType LONCAPA
   80: Require valid-user
   81: 
   82: PerlAccessHandler      Apache::publiccheck
   83: PerlAuthzHandler       Apache::lonacc
   84: PerlHeaderParserHandler Apache::lonrep
   85: ErrorDocument     403 /adm/login
   86: ErrorDocument     404 /adm/notfound.html
   87: ErrorDocument     406 /adm/roles
   88: ErrorDocument	  500 /adm/errorhandler
   89: </LocationMatch>
   90: 
   91: 
   92: <LocationMatch "/.*">
   93: </LocationMatch>
   94: 
   95: 
   96: <LocationMatch "^/+enc.*">
   97: SetHandler perl-script
   98: PerlHandler       Apache::lonencurl
   99: ErrorDocument     403 /adm/login
  100: ErrorDocument     404 /adm/notfound.html
  101: ErrorDocument     406 /adm/roles
  102: ErrorDocument	  500 /adm/errorhandler
  103: </LocationMatch>
  104: 
  105: <Location /adm/portfolio>
  106: AuthType LONCAPA
  107: Require valid-user
  108: PerlAuthzHandler Apache::lonacc
  109: SetHandler perl-script
  110: PerlHandler Apache::portfolio
  111: </Location>
  112: 
  113: <Location /adm/coursegrp_portfolio>
  114: AuthType LONCAPA
  115: Require valid-user
  116: PerlAuthzHandler Apache::lonacc
  117: SetHandler perl-script
  118: PerlHandler Apache::portfolio
  119: </Location>
  120: 
  121: <Location /adm/pdfupload>
  122: AuthType LONCAPA
  123: Require valid-user
  124: PerlAuthzHandler Apache::lonacc
  125: SetHandler perl-script
  126: PerlHandler             Apache::lonpdfupload
  127: ErrorDocument     403 /adm/login
  128: ErrorDocument     404 /adm/notfound.html
  129: ErrorDocument     406 /adm/roles
  130: ErrorDocument     500 /adm/errorhandler
  131: </Location>
  132: 
  133: <LocationMatch "^/+userfiles.*">
  134: PerlAccessHandler       Apache::lontokacc
  135: PerlCleanupHandler	Apache::lontokacc::removefile
  136: PerlCleanupHandler	Apache::lonacc::cleanup
  137: </LocationMatch>
  138: 
  139: <LocationMatch "^/+uploaded.*">
  140: AuthType LONCAPA
  141: Require valid-user
  142: PerlAuthzHandler	Apache::lonacc
  143: PerlHandler 		Apache::londatecheck
  144: PerlHandler  		Apache::lonipcheck
  145: PerlHeaderParserHandler Apache::lonuploadrep
  146: ErrorDocument     403 /adm/login
  147: ErrorDocument     404 /adm/notfound.html
  148: ErrorDocument     406 /adm/roles
  149: ErrorDocument	  500 /adm/errorhandler
  150: </LocationMatch>
  151: 
  152: <LocationMatch "^/+editupload.*">
  153: AuthType LONCAPA
  154: Require valid-user
  155: PerlAuthzHandler	Apache::lonacc
  156: ErrorDocument     403 /adm/login
  157: ErrorDocument     406 /adm/roles
  158: ErrorDocument	  500 /adm/errorhandler
  159: </LocationMatch>
  160: 
  161: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
  162: PerlAuthenHandler	Apache::lonuploadedacc
  163: PerlAuthzHandler	Apache::lonuploadedacc::skip_phase
  164: PerlAccessHandler	Apache::lonuploadedacc::skip_phase
  165: </LocationMatch>
  166: 
  167: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
  168: PerlAccessHandler      Apache::publiccheck
  169: AuthType LONCAPA
  170: Require valid-user
  171: PerlAuthzHandler       Apache::lonacc
  172: </LocationMatch>
  173: 
  174: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
  175: PerlAccessHandler      Apache::publiccheck
  176: AuthType LONCAPA
  177: Require valid-user
  178: PerlAuthzHandler       Apache::lonacc
  179: </LocationMatch>
  180: 
  181: <LocationMatch "^/+uploaded/.*\.page$">
  182: SetHandler perl-script
  183: PerlHandler Apache::lonpage
  184: </LocationMatch>
  185: 
  186: <LocationMatch "^/+uploaded/.*\.sequence$">
  187: SetHandler perl-script
  188: PerlHandler Apache::lonsequence
  189: </LocationMatch>
  190: 
  191: <LocationMatch "^/+public/.*/syllabus$">
  192: PerlAccessHandler      Apache::publiccheck
  193: AuthType LONCAPA
  194: Require valid-user
  195: PerlAuthzHandler	Apache::lonacc
  196: SetHandler              perl-script
  197: PerlHandler             Apache::lonsyllabus
  198: ErrorDocument     404 /adm/notfound.html
  199: ErrorDocument	  500 /adm/errorhandler
  200: </LocationMatch>
  201: 
  202: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
  203: PerlAccessHandler      Apache::publiccheck
  204: AuthType LONCAPA
  205: Require valid-user
  206: PerlAuthzHandler	Apache::lonacc
  207: SetHandler              perl-script
  208: PerlHandler             Apache::lonrss
  209: ErrorDocument     404 /adm/notfound.html
  210: ErrorDocument	  500 /adm/errorhandler
  211: </LocationMatch>
  212: 
  213: <LocationMatch "^/adm/.*/aboutme$">
  214: AuthType LONCAPA
  215: Require valid-user
  216: PerlAuthzHandler	Apache::lonacc
  217: SetHandler              perl-script
  218: PerlHandler             Apache::lonaboutme
  219: ErrorDocument     404 /adm/notfound.html
  220: ErrorDocument     406 /adm/notinit.html
  221: ErrorDocument	  500 /adm/errorhandler
  222: </LocationMatch>
  223: 
  224: <LocationMatch "^/adm/.*/aboutme/portfolio$">
  225: PerlAccessHandler       Apache::publiccheck
  226: AuthType LONCAPA
  227: Require valid-user
  228: PerlAuthzHandler	Apache::lonacc
  229: SetHandler              perl-script
  230: PerlHandler             Apache::lonaboutme
  231: ErrorDocument     404 /adm/notfound.html
  232: ErrorDocument     406 /adm/notinit.html
  233: ErrorDocument	  500 /adm/errorhandler
  234: </LocationMatch>
  235: 
  236: <LocationMatch "^/adm/.*/smppg$">
  237: AuthType LONCAPA
  238: Require valid-user
  239: PerlAuthzHandler	Apache::lonacc
  240: SetHandler              perl-script
  241: PerlHandler             Apache::londatecheck
  242: PerlHandler		Apache::lonipcheck
  243: PerlHandler             Apache::lonsimplepage
  244: ErrorDocument     404 /adm/notfound.html
  245: ErrorDocument     406 /adm/notinit.html
  246: ErrorDocument	  500 /adm/errorhandler
  247: </LocationMatch>
  248: 
  249: <LocationMatch "^/adm/.*/bulletinboard$">
  250: AuthType LONCAPA
  251: Require valid-user
  252: PerlAuthzHandler	Apache::lonacc
  253: SetHandler              perl-script
  254: PerlHandler             Apache::londatecheck
  255: PerlHandler		Apache::lonipcheck
  256: PerlHandler             Apache::lonbulletin
  257: ErrorDocument     404 /adm/notfound.html
  258: ErrorDocument     406 /adm/notinit.html
  259: ErrorDocument	  500 /adm/errorhandler
  260: </LocationMatch>
  261: 
  262: <LocationMatch "\.problem/smpedit$">
  263: AuthType LONCAPA
  264: Require valid-user
  265: PerlAuthzHandler	Apache::lonacc
  266: SetHandler              perl-script
  267: PerlHandler             Apache::lonsimpleproblemedit
  268: ErrorDocument     404 /adm/notfound.html
  269: ErrorDocument     406 /adm/notinit.html
  270: ErrorDocument	  500 /adm/errorhandler
  271: </LocationMatch>
  272: 
  273: <LocationMatch "^/adm/.*/ext\.tool$">
  274: AuthType LONCAPA
  275: Require valid-user
  276: PerlAuthzHandler        Apache::lonacc
  277: SetHandler              perl-script
  278: PerlHandler             Apache::londatecheck
  279: PerlHandler             Apache::lonipcheck
  280: PerlHandler             Apache::lonexttool
  281: ErrorDocument     404 /adm/notfound.html
  282: ErrorDocument     406 /adm/notinit.html
  283: ErrorDocument     500 /adm/errorhandler
  284: </LocationMatch>
  285: 
  286: <LocationMatch "^/adm/placement$">
  287: AuthType LONCAPA
  288: Require valid-user
  289: PerlAuthzHandler        Apache::lonacc
  290: SetHandler              perl-script
  291: PerlHandler             Apache::lonplacementtest
  292: ErrorDocument     404 /adm/notfound.html
  293: ErrorDocument     406 /adm/notinit.html
  294: ErrorDocument     500 /adm/errorhandler
  295: </LocationMatch>
  296: 
  297: <Location /adm/exturlcheck>
  298: AuthType LONCAPA
  299: Require valid-user
  300: PerlAuthzHandler  Apache::lonacc
  301: SetHandler        perl-script
  302: PerlHandler       Apache::lonexturlcheck
  303: ErrorDocument     403 /adm/login
  304: ErrorDocument     404 /adm/notfound.html
  305: ErrorDocument     406 /adm/unauthorized
  306: ErrorDocument     500 /adm/errorhandler
  307: </Location>
  308: 
  309: <LocationMatch "^/+priv/.*">
  310: AuthType LONCAPA
  311: Require valid-user
  312: PerlAuthzHandler Apache::loncacc
  313: SetHandler        perl-script
  314: ErrorDocument     403 /adm/login
  315: ErrorDocument     404 /adm/notfound.html
  316: ErrorDocument     406 /adm/unauthorized
  317: ErrorDocument	  500 /adm/errorhandler
  318: </LocationMatch>
  319: 
  320: <LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/">
  321:   <IfModule mod_dav.c>
  322:     <IfModule mod_ssl.c>
  323:       AuthType Basic
  324:       AuthName "LONCAPA username,domain"
  325:       Require valid-user
  326:       SSLRequireSSL
  327:       PerlAuthenHandler Apache::lonwebdavauth
  328:       PerlAuthzHandler Apache::lonwebdavacc
  329:       Dav On
  330:       DirectoryIndex index.missing
  331:       Options Indexes FollowSymLinks
  332:       ErrorDocument     403 /adm/nowebdav.html
  333:       ErrorDocument     404 /adm/notfound.html
  334:       ErrorDocument     406 /adm/unauthorized
  335:       ErrorDocument     500 /adm/errorhandler
  336:     </IfModule>
  337:     <IfModule !mod_ssl.c>
  338:       <IfModule mod_rewrite.c>
  339:         RewriteEngine on
  340:         RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
  341:       </IfModule>
  342:     </IfModule>
  343:   </IfModule>
  344:   <IfModule !mod_dav.c>
  345:     <IfModule mod_rewrite.c>
  346:       RewriteEngine on
  347:       RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
  348:     </IfModule>
  349:   </IfModule>
  350: </LocationMatch>
  351: 
  352: <LocationMatch "^/+raw.*">
  353: PerlAccessHandler Apache::lonracc
  354: </LocationMatch>
  355: 
  356: <LocationMatch "^/adm/helper/.*\.helper$">
  357: AuthType LONCAPA
  358: Require valid-user
  359: PerlAuthzHandler  Apache::lonacc
  360: SetHandler        perl-script
  361: PerlHandler       Apache::lonhelper
  362: ErrorDocument     403 /adm/login
  363: ErrorDocument     404 /adm/notfound.html
  364: ErrorDocument     406 /adm/unauthorized
  365: ErrorDocument     500 /adm/errorhandler
  366: </LocationMatch>
  367: 
  368: <LocationMatch "/prtspool">
  369: AuthType LONCAPA
  370: Require valid-user
  371: PerlAuthzHandler Apache::lonacc
  372: ErrorDocument     403 /adm/login
  373: ErrorDocument     404 /adm/notfound.html
  374: ErrorDocument     406 /adm/roles
  375: ErrorDocument     413 /adm/overloaded.txt
  376: ErrorDocument	  500 /adm/errorhandler
  377: </LocationMatch>
  378: 
  379: <LocationMatch "/zipspool">
  380: AuthType LONCAPA
  381: Require valid-user
  382: PerlAuthzHandler Apache::lonacc
  383: ErrorDocument     403 /adm/login
  384: ErrorDocument     404 /adm/notfound.html
  385: ErrorDocument     406 /adm/roles
  386: ErrorDocument     413 /adm/overloaded.txt
  387: ErrorDocument	  500 /adm/errorhandler
  388: </LocationMatch>
  389: # ------------------------------------------------------------------------- RAT
  390: 
  391: <LocationMatch "^/+priv/.*\.sequence$">
  392: SetHandler perl-script
  393: PerlHandler Apache::lonratedt
  394: </LocationMatch>
  395: 
  396: <LocationMatch "^/+priv/.*\.page$">
  397: SetHandler perl-script
  398: PerlHandler Apache::lonratedt
  399: </LocationMatch>
  400: 
  401: <LocationMatch "^/+priv/.*\/ratserver$">
  402: SetHandler perl-script
  403: PerlHandler Apache::lonratsrv
  404: </LocationMatch>
  405: 
  406: <LocationMatch "^/+priv/.*\/adveditmenu$">
  407: SetHandler perl-script
  408: PerlHandler Apache::lonratmenu
  409: </LocationMatch>
  410: 
  411: <Location /adm/ratparms>
  412: AuthType LONCAPA
  413: Require valid-user
  414: PerlAuthzHandler       Apache::lonacc
  415: SetHandler perl-script
  416: PerlHandler Apache::lonratparms
  417: ErrorDocument     403 /adm/login
  418: ErrorDocument	  500 /adm/errorhandler
  419: </Location>
  420: 
  421: # --------------------------------------------- Resource Space Content Handlers
  422: 
  423: <LocationMatch "^/+res.*/$">
  424: SetHandler perl-script
  425: PerlHandler Apache::lonindexer
  426: PerlCleanupHandler Apache::lonindexer::cleanup
  427: PerlCleanupHandler	Apache::lonacc::cleanup
  428: </LocationMatch>
  429: 
  430: <LocationMatch "^/+res.*\.tex$">
  431: SetHandler perl-script
  432: PerlHandler Apache::lontex
  433: </LocationMatch>
  434: 
  435: <LocationMatch "^/+res/.*\.page$">
  436: SetHandler perl-script
  437: PerlHandler Apache::lonpage
  438: </LocationMatch>
  439: 
  440: <LocationMatch "^/+res/.*\.sequence$">
  441: SetHandler perl-script
  442: PerlHandler Apache::lonsequence
  443: </LocationMatch>
  444: 
  445: <LocationMatch "^/+(res|priv|public|uploaded|editupload|adm)/.*\.meta$">
  446: PerlAccessHandler      Apache::publiccheck
  447: SetHandler perl-script
  448: PerlHandler Apache::lonmeta
  449: ErrorDocument     413 /adm/overloaded.txt
  450: </LocationMatch>
  451: 
  452: <LocationMatch "^/adm/bombs/">
  453: AuthType LONCAPA
  454: Require valid-user
  455: PerlAuthzHandler Apache::lonacc
  456: SetHandler perl-script
  457: PerlHandler Apache::lonmeta
  458: </LocationMatch>
  459: 
  460: 
  461: 
  462: <LocationMatch "^/+(res|priv)/.*\.rights$">
  463: SetHandler perl-script
  464: PerlHandler Apache::lonrights
  465: </LocationMatch>
  466: 
  467: <LocationMatch "^/+(uploaded|res|priv)/.*\.(xml|html|htm|xhtml|xhtm|sty)$">
  468: SetHandler perl-script
  469: PerlHandler Apache::londatecheck
  470: PerlHandler Apache::lonipcheck
  471: PerlHandler Apache::lonxml
  472: </LocationMatch>
  473: 
  474: <LocationMatch "^/+(res|priv).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
  475: SetHandler perl-script
  476: PerlHandler Apache::lonhomework
  477: </LocationMatch>
  478: 
  479: <LocationMatch "^/+priv/.*\.(js|css|txt|tex)$">
  480: SetHandler perl-script
  481: PerlHandler Apache::lonxml
  482: </LocationMatch>
  483: 
  484: <LocationMatch "^/daxepage/priv/">
  485: AuthType LONCAPA
  486: Require valid-user
  487: PerlAuthzHandler       Apache::loncacc
  488: ErrorDocument     403 /adm/login
  489: ErrorDocument     404 /adm/notfound.html
  490: ErrorDocument     406 /adm/unauthorized
  491: ErrorDocument     500 /adm/errorhandler
  492: </LocationMatch>
  493: 
  494: <LocationMatch "^/daxeopen/">
  495: AuthType LONCAPA
  496: Require valid-user
  497: PerlAuthzHandler       Apache::lonacc
  498: </LocationMatch>
  499: 
  500: <LocationMatch "^/daxe(page|open)/uploaded/">
  501: AuthType LONCAPA
  502: Require valid-user
  503: PerlAuthzHandler       Apache::lonacc
  504: ErrorDocument     403 /adm/login
  505: ErrorDocument     404 /adm/notfound.html
  506: ErrorDocument     406 /adm/unauthorized
  507: ErrorDocument     500 /adm/errorhandler
  508: </LocationMatch>
  509: 
  510: <LocationMatch "^/daxepage/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
  511: SetHandler perl-script
  512: PerlHandler Apache::daxepage
  513: </LocationMatch>
  514: 
  515: <LocationMatch "^/daxepage/uploaded/[^/]+/[^/]+/.*html?$">
  516: SetHandler perl-script
  517: PerlHandler Apache::daxepage
  518: </LocationMatch>
  519: 
  520: <LocationMatch "^/daxeopen/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
  521: SetHandler perl-script
  522: PerlHandler Apache::daxeopen
  523: </LocationMatch>
  524: 
  525: <LocationMatch "^/daxeopen/$">
  526: SetHandler perl-script
  527: PerlHandler Apache::daxeopen
  528: </LocationMatch>
  529: 
  530: <LocationMatch "^/daxeopen/(res|priv)/(.+/)?$">
  531: SetHandler perl-script
  532: PerlHandler Apache::daxeopen
  533: </LocationMatch>
  534: 
  535: <LocationMatch "^/daxeopen/uploaded/[^/]+/[^/]+/.*html?$">
  536: SetHandler perl-script
  537: PerlHandler Apache::daxeopen
  538: </LocationMatch>
  539: 
  540: <LocationMatch "(?i)^/daxeopen/priv/.+\.(?!task$|problem$|exam$|quiz$|assess$|survey$|library$|xml$|html$|htm$|xhtml$|xhtm$)[^.]*$">
  541: <IfModule mod_rewrite.c>
  542:   RewriteEngine on
  543:   RewriteRule /daxeopen/(.*) /$1
  544: </IfModule>
  545: </LocationMatch>
  546: 
  547: <LocationMatch "(?i)^/daxeopen/(res/.*\.(jpg|jpeg|gif|png|svg))$">
  548: <IfModule mod_rewrite.c>
  549:   RewriteEngine on
  550:   RewriteRule /daxeopen/(.*) /$1
  551: </IfModule>
  552: </LocationMatch>
  553: 
  554: <LocationMatch "^/daxesave$">
  555: AuthType LONCAPA
  556: Require valid-user
  557: PerlAuthzHandler       Apache::lonacc
  558: SetHandler perl-script
  559: PerlHandler Apache::daxesave
  560: </LocationMatch>
  561: 
  562: <Location /adm/coursepub>
  563: AuthType LONCAPA
  564: Require valid-user
  565: PerlAuthzHandler Apache::lonacc
  566: SetHandler perl-script
  567: PerlHandler Apache::loncoursepub
  568: ErrorDocument     404 /adm/notfound.html
  569: ErrorDocument     500 /adm/errorhandler
  570: </Location>
  571: 
  572: <LocationMatch "^/adm/wrapper/">
  573: AuthType LONCAPA
  574: Require valid-user
  575: PerlAuthzHandler       Apache::lonacc
  576: PerlHandler Apache::londatecheck
  577: PerlHandler Apache::lonipcheck
  578: SetHandler perl-script
  579: PerlHandler Apache::lonwrapper
  580: ErrorDocument     403 /adm/login
  581: ErrorDocument	  500 /adm/errorhandler
  582: </LocationMatch>
  583: 
  584: <LocationMatch "^/adm/source">
  585: AuthType LONCAPA
  586: Require valid-user
  587: PerlAuthzHandler       Apache::lonacc
  588: SetHandler perl-script
  589: PerlHandler Apache::lonsource
  590: ErrorDocument     403 /adm/login
  591: ErrorDocument     406 /adm/roles
  592: ErrorDocument	  500 /adm/errorhandler
  593: </LocationMatch>
  594: 
  595: 
  596: <LocationMatch "^/adm/localize/">
  597: AuthType LONCAPA
  598: Require valid-user
  599: PerlAuthzHandler       Apache::lonacc
  600: SetHandler perl-script
  601: PerlHandler Apache::lonlocalize
  602: ErrorDocument     403 /adm/login
  603: ErrorDocument	  500 /adm/errorhandler
  604: </LocationMatch>
  605: 
  606: # -------------------------------------------------------------- Admin Programs
  607: 
  608: <Location /adm/randomlabel.png>
  609: AuthType LONCAPA
  610: Require valid-user
  611: PerlAuthzHandler       Apache::lonacc
  612: SetHandler perl-script
  613: PerlHandler Apache::randomlylabel
  614: ErrorDocument     403 /adm/login
  615: ErrorDocument	  500 /adm/errorhandler
  616: </Location>
  617: 
  618: <Location /adm/imagechoice>
  619: AuthType LONCAPA
  620: Require valid-user
  621: PerlAuthzHandler       Apache::lonacc
  622: SetHandler perl-script
  623: PerlHandler Apache::imagechoice
  624: ErrorDocument     403 /adm/login
  625: ErrorDocument	  500 /adm/errorhandler
  626: </Location>
  627: 
  628: <Location /adm/searchcourse>
  629: AuthType LONCAPA
  630: Require valid-user
  631: PerlAuthzHandler       Apache::lonacc
  632: SetHandler perl-script
  633: PerlHandler Apache::lonsearchcourse
  634: ErrorDocument     403 /adm/login
  635: ErrorDocument     500 /adm/errorhandler
  636: </Location>
  637: 
  638: <Location /adm/indexcourse>
  639: AuthType LONCAPA
  640: Require valid-user
  641: PerlAuthzHandler       Apache::lonacc
  642: SetHandler perl-script
  643: PerlHandler Apache::lonindexcourse
  644: ErrorDocument     403 /adm/login
  645: ErrorDocument     500 /adm/errorhandler
  646: </Location>
  647: 
  648: <Location /adm/statistics>
  649: AuthType LONCAPA
  650: Require valid-user
  651: PerlAuthzHandler       Apache::lonacc
  652: SetHandler perl-script
  653: PerlHandler Apache::lonstatistics
  654: ErrorDocument     403 /adm/login
  655: ErrorDocument     413 /adm/overloaded.txt
  656: ErrorDocument	  500 /adm/errorhandler
  657: </Location>
  658: 
  659: <Location /adm/trackstudent>
  660: AuthType LONCAPA
  661: Require valid-user
  662: PerlAuthzHandler       Apache::lonacc
  663: SetHandler perl-script
  664: PerlHandler Apache::lontrackstudent
  665: ErrorDocument     403 /adm/login
  666: ErrorDocument     413 /adm/overloaded.txt
  667: ErrorDocument	  500 /adm/errorhandler
  668: </Location>
  669: 
  670: <Location /adm/roles>
  671: AuthType LONCAPA
  672: Require valid-user
  673: PerlAuthzHandler       Apache::lonacc
  674: SetHandler perl-script
  675: PerlHandler Apache::lonroles
  676: ErrorDocument     403 /adm/login
  677: ErrorDocument     409 /adm/preferences?action=lockwarning
  678: ErrorDocument	  500 /adm/errorhandler
  679: </Location>
  680: 
  681: <Location /adm/menu>
  682: AuthType LONCAPA
  683: Require valid-user
  684: PerlAuthzHandler       Apache::lonacc
  685: SetHandler perl-script
  686: PerlHandler Apache::lonmainmenu
  687: ErrorDocument     403 /adm/login
  688: ErrorDocument	  500 /adm/errorhandler
  689: </Location>
  690: 
  691: <Location /adm/pickresource>
  692: AuthType LONCAPA
  693: Require valid-user
  694: PerlAuthzHandler       Apache::lonacc
  695: SetHandler perl-script
  696: PerlHandler Apache::lonpickresource
  697: ErrorDocument     403 /adm/login
  698: ErrorDocument     500 /adm/errorhandler
  699: </Location>
  700: 
  701: <Location /adm/pickauthor>
  702: AuthType LONCAPA
  703: Require valid-user
  704: PerlAuthzHandler       Apache::lonacc
  705: SetHandler perl-script
  706: PerlHandler Apache::lonpickauthor
  707: ErrorDocument     403 /adm/login
  708: ErrorDocument     500 /adm/errorhandler
  709: </Location>
  710: 
  711: <Location /adm/pickstudent>
  712: AuthType LONCAPA
  713: Require valid-user
  714: PerlAuthzHandler       Apache::lonacc
  715: SetHandler perl-script
  716: PerlHandler Apache::lonpickstudent
  717: ErrorDocument     403 /adm/login
  718: ErrorDocument	  500 /adm/errorhandler
  719: </Location>
  720: 
  721: <Location /adm/pickuser>
  722: AuthType LONCAPA
  723: Require valid-user
  724: PerlAuthzHandler       Apache::lonacc
  725: SetHandler perl-script
  726: PerlHandler Apache::lonpickuser
  727: ErrorDocument     403 /adm/login
  728: ErrorDocument     406 /adm/roles
  729: ErrorDocument     500 /adm/errorhandler
  730: </Location>
  731: 
  732: <Location /adm/pickcourse>
  733: AuthType LONCAPA
  734: Require valid-user
  735: PerlAuthzHandler       Apache::lonacc
  736: SetHandler perl-script
  737: PerlHandler Apache::lonpickcourse
  738: ErrorDocument     403 /adm/login
  739: ErrorDocument	  500 /adm/errorhandler
  740: </Location>
  741: 
  742: <Location /adm/pickcode>
  743: AuthType LONCAPA
  744: Require valid-user
  745: PerlAuthzHandler       Apache::lonacc
  746: SetHandler perl-script
  747: PerlHandler Apache::lonpickcode
  748: ErrorDocument     403 /adm/login
  749: ErrorDocument	  500 /adm/errorhandler
  750: </Location>
  751: 
  752: <Location /adm/dependencies>
  753: AuthType LONCAPA
  754: Require valid-user
  755: PerlAuthzHandler       Apache::lonacc
  756: SetHandler perl-script
  757: PerlHandler Apache::londependencies
  758: ErrorDocument     403 /adm/login
  759: ErrorDocument     406 /adm/roles
  760: ErrorDocument     500 /adm/errorhandler
  761: </Location>
  762: 
  763: <Location /adm/login>
  764: SetHandler perl-script
  765: PerlHandler Apache::lonlogin
  766: </Location>
  767: 
  768: <LocationMatch "^/+adm/lti($|/)">
  769: SetHandler perl-script
  770: PerlHandler Apache::ltiauth
  771: </LocationMatch>
  772: 
  773: <Location /adm/service/passback>
  774: SetHandler perl-script
  775: PerlHandler Apache::ltipassback
  776: </Location>
  777: 
  778: <Location /adm/service/roster>
  779: SetHandler perl-script
  780: PerlHandler Apache::ltiroster
  781: </Location>
  782: 
  783: <LocationMatch "^/adm/service/logout/\w+$">
  784: SetHandler perl-script
  785: PerlHandler Apache::ltilogout
  786: </LocationMatch>
  787: 
  788: <Location /adm/restrictedaccess>
  789: PerlAccessHandler      Apache::publiccheck
  790: AuthType LONCAPA
  791: Require valid-user
  792: PerlAuthzHandler       Apache::lonacc
  793: SetHandler perl-script
  794: PerlHandler Apache::restrictedaccess
  795: ErrorDocument	  500 /adm/errorhandler
  796: </Location>
  797: 
  798: <Location /adm/blockedaccess>
  799: PerlAccessHandler      Apache::publiccheck
  800: AuthType LONCAPA
  801: Require valid-user
  802: PerlAuthzHandler       Apache::lonacc
  803: SetHandler perl-script
  804: PerlHandler Apache::blockedaccess
  805: ErrorDocument     500 /adm/errorhandler
  806: </Location>
  807: 
  808: <Location /adm/protected>
  809: PerlAccessHandler      Apache::publiccheck
  810: AuthType LONCAPA
  811: Require valid-user
  812: PerlAuthzHandler       Apache::lonacc
  813: SetHandler perl-script
  814: PerlHandler Apache::lonprotected
  815: ErrorDocument     403 /adm/login
  816: ErrorDocument     500 /adm/errorhandler
  817: </Location>
  818: 
  819: <Location /adm/logout>
  820: AuthType LONCAPA
  821: Require valid-user
  822: PerlAuthzHandler       Apache::lonacc
  823: SetHandler perl-script
  824: PerlHandler Apache::lonlogout
  825: ErrorDocument     403 /adm/login
  826: ErrorDocument     409 /adm/preferences?action=lockwarning
  827: ErrorDocument	  500 /adm/errorhandler
  828: </Location>
  829: 
  830: <Location /adm/switchserver>
  831: AuthType LONCAPA
  832: Require valid-user
  833: PerlAuthzHandler       Apache::lonacc
  834: SetHandler perl-script
  835: PerlHandler Apache::switchserver
  836: ErrorDocument     403 /adm/login
  837: ErrorDocument	  500 /adm/errorhandler
  838: </Location>
  839: 
  840: <Location /adm/authenticate>
  841: SetHandler perl-script
  842: PerlHandler Apache::lonauth
  843: </Location>
  844: 
  845: <Location /adm/migrateuser>
  846: SetHandler perl-script
  847: PerlHandler Apache::migrateuser
  848: </Location>
  849: 
  850: <Location /adm/sso>
  851:   <IfModule mod_shib>
  852:     AuthType shibboleth
  853:     ShibUseEnvironment On
  854:     ShibRequestSetting requireSession 1
  855:     ShibRequestSetting redirectToSSL 443
  856:     require valid-user
  857:     PerlAuthzHandler       Apache::lonshibacc
  858:     PerlAuthzHandler       Apache::lonacc
  859:   </IfModule>
  860:   <IfModule !mod_shib>
  861:     PerlTypeHandler        Apache::lonnoshib
  862:   </IfModule>
  863: </Location>
  864: 
  865: <Location /adm/annotations>
  866: AuthType LONCAPA
  867: Require valid-user
  868: PerlAuthzHandler       Apache::lonacc
  869: SetHandler perl-script
  870: PerlHandler Apache::admannotations
  871: ErrorDocument     403 /adm/login
  872: ErrorDocument	  500 /adm/errorhandler
  873: </Location>
  874: 
  875: <Location /adm/annotation>
  876: AuthType LONCAPA
  877: Require valid-user
  878: PerlAuthzHandler       Apache::lonacc
  879: SetHandler perl-script
  880: PerlHandler Apache::admannotations
  881: ErrorDocument     403 /adm/login
  882: ErrorDocument     500 /adm/errorhandler
  883: </Location>
  884: 
  885: <Location /adm/spellcheck>
  886: AuthType LONCAPA
  887: Require valid-user
  888: PerlAuthzHandler       Apache::lonacc
  889: SetHandler perl-script
  890: PerlHandler Apache::lonspeller
  891: ErrorDocument     403 /adm/login
  892: ErrorDocument	  500 /adm/errorhandler
  893: </Location>
  894: 
  895: <Location /adm/flip>
  896: AuthType LONCAPA
  897: Require valid-user
  898: PerlAuthzHandler       Apache::lonacc
  899: SetHandler perl-script
  900: PerlHandler Apache::lonpageflip
  901: PerlCleanupHandler Apache::lonpageflip::cleanup
  902: PerlCleanupHandler	Apache::lonacc::cleanup
  903: ErrorDocument     406 /adm/roles
  904: ErrorDocument     403 /adm/login
  905: ErrorDocument	  500 /adm/errorhandler
  906: </Location>
  907: 
  908: <Location /adm/ambiguous>
  909: AuthType LONCAPA
  910: Require valid-user
  911: PerlAuthzHandler       Apache::lonacc
  912: SetHandler perl-script
  913: PerlHandler Apache::lonambiguous
  914: PerlCleanupHandler Apache::lonambiguous::cleanup
  915: PerlCleanupHandler	Apache::lonacc::cleanup
  916: ErrorDocument     403 /adm/login
  917: ErrorDocument	  500 /adm/errorhandler
  918: </Location>
  919: 
  920: <Location /adm/email>
  921: AuthType LONCAPA
  922: Require valid-user
  923: PerlAuthzHandler       Apache::lonacc
  924: SetHandler perl-script
  925: PerlHandler Apache::lonmsgdisplay
  926: ErrorDocument     403 /adm/login
  927: ErrorDocument	  500 /adm/errorhandler
  928: </Location>
  929: 
  930: <Location /adm/notify>
  931: AuthType LONCAPA
  932: Require valid-user
  933: PerlAuthzHandler       Apache::lonacc
  934: SetHandler perl-script
  935: PerlHandler Apache::lonnotify
  936: ErrorDocument     403 /adm/login
  937: ErrorDocument     500 /adm/errorhandler
  938: </Location>
  939: 
  940: <Location /adm/parmset>
  941: AuthType LONCAPA
  942: Require valid-user
  943: PerlAuthzHandler       Apache::lonacc
  944: SetHandler perl-script
  945: PerlHandler Apache::lonparmset
  946: ErrorDocument     403 /adm/login
  947: ErrorDocument     406 /adm/roles
  948: ErrorDocument	  500 /adm/errorhandler
  949: </Location>
  950: 
  951: <Location /adm/courseprefs>
  952: AuthType LONCAPA
  953: Require valid-user
  954: PerlAuthzHandler       Apache::lonacc
  955: SetHandler perl-script
  956: PerlHandler Apache::courseprefs
  957: ErrorDocument     403 /adm/login
  958: ErrorDocument     406 /adm/roles
  959: ErrorDocument     500 /adm/errorhandler
  960: </Location>
  961: 
  962: <Location /adm/slotrequest>
  963: AuthType LONCAPA
  964: Require valid-user
  965: PerlAuthzHandler       Apache::lonacc
  966: SetHandler perl-script
  967: PerlHandler Apache::slotrequest
  968: ErrorDocument     403 /adm/login
  969: ErrorDocument     406 /adm/roles
  970: ErrorDocument	  500 /adm/errorhandler
  971: </Location>
  972: 
  973: <Location /adm/wizard>
  974: AuthType LONCAPA
  975: Require valid-user
  976: PerlAuthzHandler       Apache::lonacc
  977: SetHandler perl-script
  978: PerlHandler Apache::lonwizard
  979: ErrorDocument     403 /adm/login
  980: ErrorDocument     406 /adm/roles
  981: ErrorDocument	  500 /adm/errorhandler
  982: </Location>
  983: 
  984: <Location /adm/grades>
  985: AuthType LONCAPA
  986: Require valid-user
  987: PerlAuthzHandler       Apache::lonacc
  988: SetHandler perl-script
  989: PerlHandler Apache::grades
  990: ErrorDocument     403 /adm/login
  991: ErrorDocument     406 /adm/roles
  992: ErrorDocument	  500 /adm/errorhandler
  993: </Location>
  994: 
  995: <Location /adm/requestcourse>
  996: AuthType LONCAPA
  997: Require valid-user
  998: PerlAuthzHandler       Apache::lonacc
  999: SetHandler perl-script
 1000: PerlHandler Apache::lonrequestcourse
 1001: ErrorDocument     403 /adm/login
 1002: ErrorDocument     406 /adm/roles
 1003: ErrorDocument     500 /adm/errorhandler
 1004: </Location>
 1005: 
 1006: <Location /adm/createcourse>
 1007: AuthType LONCAPA
 1008: Require valid-user
 1009: PerlAuthzHandler       Apache::lonacc
 1010: SetHandler perl-script
 1011: PerlHandler Apache::loncreatecourse
 1012: ErrorDocument     403 /adm/login
 1013: ErrorDocument     406 /adm/roles
 1014: ErrorDocument	  500 /adm/errorhandler
 1015: </Location>
 1016: 
 1017: <Location /adm/modifycourse>
 1018: AuthType LONCAPA
 1019: Require valid-user
 1020: PerlAuthzHandler       Apache::lonacc
 1021: SetHandler perl-script
 1022: PerlHandler Apache::lonmodifycourse
 1023: ErrorDocument     403 /adm/login
 1024: ErrorDocument     406 /adm/roles
 1025: ErrorDocument     500 /adm/errorhandler
 1026: </Location>
 1027: 
 1028: <Location /adm/domainprefs>
 1029: AuthType LONCAPA
 1030: Require valid-user
 1031: PerlAuthzHandler       Apache::lonacc
 1032: SetHandler perl-script
 1033: PerlHandler Apache::domainprefs
 1034: ErrorDocument     403 /adm/login
 1035: ErrorDocument     406 /adm/roles
 1036: ErrorDocument     500 /adm/errorhandler
 1037: </Location>
 1038: 
 1039: <Location /adm/domainstatus>
 1040: PerlAccessHandler       Apache::lonstatusacc
 1041: SetHandler perl-script
 1042: PerlHandler Apache::domainstatus
 1043: ErrorDocument     403 /adm/login
 1044: ErrorDocument     406 /adm/roles
 1045: ErrorDocument     500 /adm/errorhandler
 1046: </Location>
 1047: 
 1048: <Location /adm/createuser>
 1049: AuthType LONCAPA
 1050: Require valid-user
 1051: PerlAuthzHandler       Apache::lonacc
 1052: SetHandler perl-script
 1053: PerlHandler Apache::loncreateuser
 1054: ErrorDocument     403 /adm/login
 1055: ErrorDocument     406 /adm/roles
 1056: ErrorDocument	  500 /adm/errorhandler
 1057: </Location>
 1058: 
 1059: <Location /adm/publish>
 1060: AuthType LONCAPA
 1061: Require valid-user
 1062: PerlAuthzHandler       Apache::lonacc
 1063: SetHandler perl-script
 1064: PerlHandler Apache::lonpublisher
 1065: ErrorDocument     403 /adm/login
 1066: ErrorDocument     404 /adm/notfound.html
 1067: ErrorDocument     406 /adm/unauthorized
 1068: ErrorDocument	  500 /adm/errorhandler
 1069: </Location>
 1070: 
 1071: <LocationMatch "^/+priv/.*/$">
 1072: AuthType LONCAPA
 1073: Require valid-user
 1074: PerlAuthzHandler       Apache::loncacc
 1075: SetHandler perl-script
 1076: PerlHandler Apache::lonpubdir
 1077: ErrorDocument     403 /adm/login
 1078: ErrorDocument     404 /adm/notfound.html
 1079: ErrorDocument     406 /adm/unauthorized
 1080: ErrorDocument	  500 /adm/errorhandler
 1081: </LocationMatch>
 1082: 
 1083: <Location /adm/unauthorized>
 1084: AuthType LONCAPA
 1085: Require valid-user
 1086: PerlAuthzHandler       Apache::lonacc
 1087: SetHandler perl-script
 1088: PerlHandler Apache::lonunauthorized
 1089: ErrorDocument     403 /adm/login
 1090: ErrorDocument     404 /adm/notfound.html
 1091: ErrorDocument	  500 /adm/errorhandler
 1092: </Location>
 1093: 
 1094: <Location /adm/retrieve>
 1095: AuthType LONCAPA
 1096: Require valid-user
 1097: PerlAuthzHandler       Apache::lonacc
 1098: SetHandler perl-script
 1099: PerlHandler Apache::lonretrieve
 1100: ErrorDocument     403 /adm/login
 1101: ErrorDocument     404 /adm/notfound.html
 1102: ErrorDocument     406 /adm/unauthorized
 1103: ErrorDocument	  500 /adm/errorhandler
 1104: </Location>
 1105: 
 1106: <Location /adm/cleanup>
 1107: AuthType LONCAPA
 1108: Require valid-user
 1109: PerlAuthzHandler       Apache::lonacc
 1110: SetHandler perl-script
 1111: PerlHandler Apache::loncleanup
 1112: ErrorDocument     403 /adm/login
 1113: ErrorDocument     404 /adm/notfound.html
 1114: ErrorDocument     406 /adm/unauthorized
 1115: ErrorDocument	  500 /adm/errorhandler
 1116: </Location>
 1117: 
 1118: <Location /adm/cfile>
 1119: AuthType LONCAPA
 1120: Require valid-user
 1121: PerlAuthzHandler       Apache::lonacc
 1122: SetHandler perl-script
 1123: PerlHandler Apache::loncfile
 1124: ErrorDocument     403 /adm/login
 1125: ErrorDocument     404 /adm/notfound.html
 1126: ErrorDocument     406 /adm/unauthorized
 1127: ErrorDocument	  500 /adm/errorhandler
 1128: </Location>
 1129: 
 1130: <Location /adm/diff>
 1131: AuthType LONCAPA
 1132: Require valid-user
 1133: PerlAuthzHandler       Apache::lonacc
 1134: SetHandler perl-script
 1135: PerlHandler Apache::londiff
 1136: ErrorDocument     403 /adm/login
 1137: ErrorDocument     404 /adm/notfound.html
 1138: ErrorDocument     406 /adm/unauthorized
 1139: ErrorDocument	  500 /adm/errorhandler
 1140: </Location>
 1141: 
 1142: <Location /adm/upload>
 1143: AuthType LONCAPA
 1144: Require valid-user
 1145: PerlAuthzHandler       Apache::lonacc
 1146: SetHandler perl-script
 1147: PerlHandler Apache::lonupload
 1148: ErrorDocument     403 /adm/login
 1149: ErrorDocument     404 /adm/notfound.html
 1150: ErrorDocument     406 /adm/unauthorized
 1151: ErrorDocument	  500 /adm/errorhandler
 1152: </Location>
 1153: 
 1154: <Location /adm/imsimport>
 1155: AuthType LONCAPA
 1156: Require valid-user
 1157: PerlAuthzHandler       Apache::lonacc
 1158: SetHandler perl-script
 1159: PerlHandler Apache::imsimport
 1160: ErrorDocument     403 /adm/login
 1161: ErrorDocument     404 /adm/notfound.html
 1162: ErrorDocument     406 /adm/unauthorized
 1163: ErrorDocument     500 /adm/errorhandler
 1164: </Location>
 1165: 
 1166: <Location /adm/testbank>
 1167: AuthType LONCAPA
 1168: Require valid-user
 1169: PerlAuthzHandler       Apache::lonacc
 1170: SetHandler perl-script
 1171: PerlHandler Apache::testbankimport
 1172: ErrorDocument     403 /adm/login
 1173: ErrorDocument     404 /adm/notfound.html
 1174: ErrorDocument     406 /adm/unauthorized
 1175: ErrorDocument     500 /adm/errorhandler
 1176: </Location>
 1177: 
 1178: <Location /adm/assesscalc>
 1179: AuthType LONCAPA
 1180: Require valid-user
 1181: PerlAuthzHandler       Apache::lonacc
 1182: SetHandler perl-script
 1183: PerlHandler Apache::lonspreadsheet
 1184: ErrorDocument     403 /adm/login
 1185: ErrorDocument     406 /adm/roles
 1186: ErrorDocument     413 /adm/overloaded.txt
 1187: ErrorDocument	  500 /adm/errorhandler
 1188: </Location>
 1189: 
 1190: <Location /adm/studentcalc>
 1191: AuthType LONCAPA
 1192: Require valid-user
 1193: PerlAuthzHandler       Apache::lonacc
 1194: SetHandler perl-script
 1195: PerlHandler Apache::lonspreadsheet
 1196: ErrorDocument     403 /adm/login
 1197: ErrorDocument     406 /adm/roles
 1198: ErrorDocument     413 /adm/overloaded.txt
 1199: ErrorDocument	  500 /adm/errorhandler
 1200: </Location>
 1201: 
 1202: <Location /adm/classcalc>
 1203: AuthType LONCAPA
 1204: Require valid-user
 1205: PerlAuthzHandler       Apache::lonacc
 1206: SetHandler perl-script
 1207: PerlHandler Apache::lonspreadsheet
 1208: ErrorDocument     403 /adm/login
 1209: ErrorDocument     406 /adm/roles
 1210: ErrorDocument     413 /adm/overloaded.txt
 1211: ErrorDocument	  500 /adm/errorhandler
 1212: </Location>
 1213: 
 1214: <Location /adm/dropadd>
 1215: AuthType LONCAPA
 1216: Require valid-user
 1217: PerlAuthzHandler       Apache::lonacc
 1218: SetHandler perl-script
 1219: PerlHandler Apache::londropadd
 1220: ErrorDocument     403 /adm/login
 1221: ErrorDocument     406 /adm/roles
 1222: ErrorDocument	  500 /adm/errorhandler
 1223: </Location>
 1224: 
 1225: <Location /adm/viewclasslist>
 1226: AuthType LONCAPA
 1227: Require valid-user
 1228: PerlAuthzHandler       Apache::lonacc
 1229: SetHandler perl-script
 1230: PerlHandler Apache::lonviewclasslist
 1231: ErrorDocument     403 /adm/login
 1232: ErrorDocument     406 /adm/roles
 1233: ErrorDocument	  500 /adm/errorhandler
 1234: </Location>
 1235: 
 1236: <Location /adm/coursegroups>
 1237: AuthType LONCAPA
 1238: Require valid-user
 1239: PerlAuthzHandler       Apache::lonacc
 1240: SetHandler perl-script
 1241: PerlHandler Apache::loncoursegroups
 1242: ErrorDocument     403 /adm/login
 1243: ErrorDocument     406 /adm/roles
 1244: ErrorDocument     500 /adm/errorhandler
 1245: </Location>
 1246: 
 1247: <Location /adm/groupboards>
 1248: AuthType LONCAPA
 1249: Require valid-user
 1250: PerlAuthzHandler       Apache::lonacc
 1251: SetHandler perl-script
 1252: PerlHandler Apache::groupboards
 1253: ErrorDocument     403 /adm/login
 1254: ErrorDocument     406 /adm/roles
 1255: ErrorDocument     500 /adm/errorhandler
 1256: </Location>
 1257: 
 1258: <Location /adm/grouproster>
 1259: AuthType LONCAPA
 1260: Require valid-user
 1261: PerlAuthzHandler       Apache::lonacc
 1262: SetHandler perl-script
 1263: PerlHandler Apache::grouproster
 1264: ErrorDocument     403 /adm/login
 1265: ErrorDocument     406 /adm/roles
 1266: ErrorDocument     500 /adm/errorhandler
 1267: </Location>
 1268: 
 1269: <Location /adm/whatsnew>
 1270: AuthType LONCAPA
 1271: Require valid-user
 1272: PerlAuthzHandler       Apache::lonacc
 1273: SetHandler perl-script
 1274: PerlHandler Apache::lonwhatsnew
 1275: ErrorDocument     403 /adm/login
 1276: ErrorDocument     406 /adm/roles
 1277: ErrorDocument     500 /adm/errorhandler
 1278: </Location>
 1279: 
 1280: <Location /adm/populate>
 1281: AuthType LONCAPA
 1282: Require valid-user
 1283: PerlAuthzHandler       Apache::lonacc
 1284: SetHandler perl-script
 1285: PerlHandler Apache::lonpopulate
 1286: ErrorDocument     403 /adm/login
 1287: ErrorDocument     406 /adm/roles
 1288: ErrorDocument     500 /adm/errorhandler
 1289: </Location>
 1290: 
 1291: <Location /adm/managekeys>
 1292: AuthType LONCAPA
 1293: Require valid-user
 1294: PerlAuthzHandler       Apache::lonacc
 1295: SetHandler perl-script
 1296: PerlHandler Apache::lonmanagekeys
 1297: ErrorDocument     403 /adm/login
 1298: ErrorDocument     406 /adm/roles
 1299: ErrorDocument	  500 /adm/errorhandler
 1300: </Location>
 1301: 
 1302: <Location /adm/printout>
 1303: AuthType LONCAPA
 1304: Require valid-user
 1305: PerlAuthzHandler       Apache::lonacc
 1306: SetHandler perl-script
 1307: PerlHandler Apache::lonprintout
 1308: ErrorDocument     403 /adm/login
 1309: ErrorDocument     413 /adm/overloaded.txt
 1310: ErrorDocument	  500 /adm/errorhandler
 1311: </Location>
 1312: 
 1313: <Location /adm/feedback>
 1314: AuthType LONCAPA
 1315: Require valid-user
 1316: PerlAuthzHandler       Apache::lonacc
 1317: SetHandler perl-script
 1318: PerlHandler Apache::lonfeedback
 1319: ErrorDocument     403 /adm/login
 1320: ErrorDocument	  500 /adm/errorhandler
 1321: </Location>
 1322: 
 1323: <Location /adm/coursedocs>
 1324: AuthType LONCAPA
 1325: Require valid-user
 1326: PerlAuthzHandler       Apache::lonacc
 1327: SetHandler perl-script
 1328: PerlHandler Apache::londocs
 1329: PerlCleanupHandler Apache::londocs::untiehash
 1330: PerlCleanupHandler	Apache::lonacc::cleanup
 1331: ErrorDocument     403 /adm/login
 1332: ErrorDocument	  500 /adm/errorhandler
 1333: </Location>
 1334: 
 1335: <Location /adm/supplemental>
 1336: AuthType LONCAPA
 1337: Require valid-user
 1338: PerlAuthzHandler       Apache::lonacc
 1339: SetHandler perl-script
 1340: PerlHandler Apache::londocs
 1341: PerlCleanupHandler Apache::londocs::untiehash
 1342: PerlCleanupHandler      Apache::lonacc::cleanup
 1343: ErrorDocument     403 /adm/login
 1344: ErrorDocument     500 /adm/errorhandler
 1345: </Location>
 1346: 
 1347: <Location /adm/imsimportdocs>
 1348: AuthType LONCAPA
 1349: Require valid-user
 1350: PerlAuthzHandler       Apache::lonacc
 1351: SetHandler perl-script
 1352: PerlHandler Apache::imsimportdocs
 1353: ErrorDocument     403 /adm/login
 1354: ErrorDocument     500 /adm/errorhandler
 1355: </Location>
 1356: 
 1357: <Location /adm/extresedit>
 1358: AuthType LONCAPA
 1359: Require valid-user
 1360: PerlAuthzHandler       Apache::lonacc
 1361: SetHandler perl-script
 1362: PerlHandler Apache::lonextresedit
 1363: ErrorDocument     403 /adm/login
 1364: ErrorDocument     500 /adm/errorhandler
 1365: </Location>
 1366: 
 1367: <LocationMatch "^/adm/announcements">
 1368: AuthType LONCAPA
 1369: Require valid-user
 1370: PerlAuthzHandler       Apache::lonacc
 1371: SetHandler perl-script
 1372: PerlHandler Apache::lonannounce
 1373: ErrorDocument     403 /adm/login
 1374: ErrorDocument	  500 /adm/errorhandler
 1375: </LocationMatch>
 1376: 
 1377: <Location /adm/chat>
 1378: AuthType LONCAPA
 1379: Require valid-user
 1380: PerlAuthzHandler       Apache::lonacc
 1381: SetHandler perl-script
 1382: PerlHandler Apache::lonchat
 1383: ErrorDocument	  500 /adm/errorhandler
 1384: </Location>
 1385: 
 1386: <Location /adm/chatfetch>
 1387: AuthType LONCAPA
 1388: Require valid-user
 1389: PerlAuthzHandler       Apache::lonacc
 1390: SetHandler perl-script
 1391: PerlHandler Apache::lonchatfetch
 1392: ErrorDocument     413 /adm/overloaded.txt
 1393: ErrorDocument	  500 /adm/errorhandler
 1394: </Location>
 1395: 
 1396: <Location /adm/groupchat>
 1397: AuthType LONCAPA
 1398: Require valid-user
 1399: PerlAuthzHandler       Apache::lonacc
 1400: SetHandler perl-script
 1401: PerlHandler Apache::longroupchat
 1402: ErrorDocument     403 /adm/login
 1403: ErrorDocument     500 /adm/errorhandler
 1404: </Location>
 1405: 
 1406: <Location /adm/evaluate>
 1407: AuthType LONCAPA
 1408: Require valid-user
 1409: PerlAuthzHandler       Apache::lonacc
 1410: SetHandler perl-script
 1411: PerlHandler Apache::lonevaluate
 1412: ErrorDocument     403 /adm/login
 1413: ErrorDocument	  500 /adm/errorhandler
 1414: </Location>
 1415: 
 1416: <Location /adm/preferences>
 1417: AuthType LONCAPA
 1418: Require valid-user
 1419: PerlAuthzHandler       Apache::lonacc
 1420: SetHandler perl-script
 1421: PerlHandler Apache::lonpreferences
 1422: ErrorDocument     403 /adm/login
 1423: ErrorDocument	  500 /adm/errorhandler
 1424: </Location>
 1425: 
 1426: <Location /adm/communicate>
 1427: AuthType LONCAPA
 1428: Require valid-user
 1429: PerlAuthzHandler       Apache::lonacc
 1430: SetHandler perl-script
 1431: PerlHandler Apache::loncommunicate
 1432: ErrorDocument     403 /adm/login
 1433: ErrorDocument	  500 /adm/errorhandler
 1434: </Location>
 1435: 
 1436: <Location /adm/searchcat>
 1437: AuthType LONCAPA
 1438: Require valid-user
 1439: PerlAuthzHandler       Apache::lonacc
 1440: SetHandler perl-script
 1441: PerlHandler Apache::lonsearchcat
 1442: PerlCleanupHandler Apache::lonsearchcat::cleanup
 1443: PerlCleanupHandler	Apache::lonacc::cleanup
 1444: ErrorDocument     403 /adm/login
 1445: ErrorDocument     413 /adm/overloaded.txt
 1446: ErrorDocument	  500 /adm/errorhandler
 1447: </Location>
 1448: 
 1449: <Location /adm/navmaps>
 1450: AuthType LONCAPA
 1451: Require valid-user
 1452: PerlAuthzHandler       Apache::lonacc
 1453: SetHandler perl-script
 1454: PerlHandler Apache::lonnavdisplay
 1455: ErrorDocument     403 /adm/login
 1456: ErrorDocument     406 /adm/roles
 1457: ErrorDocument	  500 /adm/errorhandler
 1458: </Location>
 1459: 
 1460: <Location /adm/quickgrades>
 1461: AuthType LONCAPA
 1462: Require valid-user
 1463: PerlAuthzHandler       Apache::lonacc
 1464: SetHandler perl-script
 1465: PerlHandler Apache::lonquickgrades
 1466: ErrorDocument     403 /adm/login
 1467: ErrorDocument     406 /adm/roles
 1468: ErrorDocument     500 /adm/errorhandler
 1469: </Location>
 1470: 
 1471: <Location /adm/groupsort>
 1472: AuthType LONCAPA
 1473: Require valid-user
 1474: PerlAuthzHandler	Apache::lonacc
 1475: SetHandler perl-script
 1476: PerlHandler Apache::groupsort
 1477: PerlCleanupHandler Apache::groupsort::cleanup
 1478: PerlCleanupHandler	Apache::lonacc::cleanup
 1479: ErrorDocument     403 /adm/login
 1480: ErrorDocument     406 /adm/roles
 1481: ErrorDocument	  500 /adm/errorhandler
 1482: </Location>
 1483: 
 1484: <Location /adm/wishlist>
 1485: AuthType LONCAPA
 1486: Require valid-user
 1487: PerlAuthzHandler       Apache::lonacc
 1488: SetHandler perl-script
 1489: PerlHandler Apache::lonwishlistdisplay
 1490: ErrorDocument     403 /adm/login
 1491: ErrorDocument     406 /adm/roles
 1492: ErrorDocument	  500 /adm/errorhandler
 1493: </Location>
 1494: 
 1495: <Location /adm/setblock>
 1496: AuthType LONCAPA
 1497: Require valid-user
 1498: PerlAuthzHandler       Apache::lonacc
 1499: SetHandler             perl-script
 1500: PerlHandler            Apache::lonblockingmenu
 1501: ErrorDocument     403 /adm/login
 1502: ErrorDocument     406 /adm/roles
 1503: ErrorDocument     500 /adm/errorhandler
 1504: </Location>
 1505: 
 1506: <Location /adm/blockingstatus>
 1507: PerlAccessHandler      Apache::publiccheck
 1508: AuthType LONCAPA
 1509: Require valid-user
 1510: PerlAuthzHandler       Apache::lonacc
 1511: SetHandler             perl-script
 1512: PerlHandler            Apache::lonblockingstatus
 1513: </Location>
 1514: 
 1515: <Location /adm/accesstimes>
 1516: AuthType LONCAPA
 1517: Require valid-user
 1518: PerlAuthzHandler       Apache::lonacc
 1519: SetHandler             perl-script
 1520: PerlHandler            Apache::lonaccesstimes
 1521: ErrorDocument     403 /adm/login
 1522: ErrorDocument     406 /adm/roles
 1523: ErrorDocument     500 /adm/errorhandler
 1524: </Location>
 1525: 
 1526: <Location /adm/errorhandler>
 1527: SetHandler perl-script
 1528: PerlHandler Apache::lonerrorhandler
 1529: </Location>
 1530: 
 1531: <LocationMatch "^/adm/help/.*\.hlp$">
 1532: AuthType LONCAPA
 1533: Require valid-user
 1534: PerlAccessHandler      Apache::publiccheck
 1535: PerlAuthzHandler	Apache::lonacc
 1536: SetHandler perl-script
 1537: PerlHandler Apache::lonhelp
 1538: ErrorDocument	  500 /adm/errorhandler
 1539: </LocationMatch>
 1540: 
 1541: <LocationMatch "^/adm/helpmenu">
 1542: AuthType LONCAPA
 1543: Require valid-user
 1544: PerlAuthzHandler       Apache::lonacc
 1545: SetHandler perl-script
 1546: PerlHandler Apache::lonhelpmenu
 1547: ErrorDocument	  500 /adm/errorhandler
 1548: </LocationMatch>
 1549: 
 1550: <LocationMatch "^/adm/support">
 1551: AuthType LONCAPA
 1552: Require valid-user
 1553: PerlAuthzHandler       Apache::lonacc
 1554: SetHandler perl-script
 1555: PerlHandler Apache::lonsupportreq
 1556: ErrorDocument	  500 /adm/errorhandler
 1557: </LocationMatch>
 1558: 
 1559: <LocationMatch "^/adm/helpdesk">
 1560: SetHandler perl-script
 1561: PerlHandler Apache::lonsupportreq
 1562: ErrorDocument	  500 /adm/errorhandler
 1563: </LocationMatch>
 1564: 
 1565: <LocationMatch "^/adm/css/.*\.css$">
 1566: SetHandler perl-script
 1567: PerlHandler Apache::loncss
 1568: ErrorDocument	  500 /adm/errorhandler
 1569: </LocationMatch>
 1570: 
 1571: <LocationMatch "^/adm/coursecatalog">
 1572: SetHandler perl-script
 1573: PerlHandler Apache::coursecatalog
 1574: ErrorDocument	  500 /adm/errorhandler
 1575: </LocationMatch>
 1576: 
 1577: <LocationMatch "^/adm/resetpw">
 1578: SetHandler perl-script
 1579: PerlHandler Apache::resetpw
 1580: ErrorDocument     500 /adm/errorhandler
 1581: </LocationMatch>
 1582: 
 1583: <LocationMatch "^/adm/selfenroll">
 1584: SetHandler perl-script
 1585: PerlHandler Apache::selfenroll
 1586: ErrorDocument     500 /adm/errorhandler
 1587: </LocationMatch>
 1588: 
 1589: <LocationMatch "^/adm/createaccount">
 1590: SetHandler perl-script
 1591: PerlHandler Apache::createaccount
 1592: ErrorDocument     500 /adm/errorhandler
 1593: </LocationMatch>
 1594: 
 1595: <LocationMatch "^/adm/dns">
 1596: SetHandler perl-script
 1597: PerlHandler Apache::londns
 1598: ErrorDocument     500 /adm/errorhandler
 1599: </LocationMatch>
 1600: 
 1601: <LocationMatch "^/ajax/spellcheck">
 1602: SetHandler perl-script
 1603: PerlHandler Apache::spellcheck
 1604: </LocationMatch>
 1605: 
 1606: <LocationMatch "^/tiny/[\w.-]+/\w+$">
 1607: AuthType LONCAPA
 1608: Require valid-user
 1609: PerlAuthzHandler Apache::lonacc
 1610: SetHandler perl-script
 1611: PerlHandler Apache::lontiny
 1612: ErrorDocument     403 /adm/login
 1613: ErrorDocument     406 /adm/roles
 1614: ErrorDocument     500 /adm/errorhandler
 1615: </LocationMatch>
 1616: 
 1617: # ------------------------------------------------- Backdoor Adm Tests/Programs
 1618: 
 1619: <Location /adm/test>
 1620: PerlAccessHandler Apache::lonstatusacc
 1621: SetHandler perl-script
 1622: PerlHandler Apache::lontest
 1623: </Location>
 1624: 
 1625: # ------------------------------------------------------- Shutting down a child
 1626: 
 1627: PerlChildExitHandler Apache::lonacc::goodbye
 1628: 
 1629: #
 1630: # LON-CAPA Section (extensions to access.conf permission configuration)
 1631: #
 1632: # =========================================================== Directory Options
 1633: 
 1634: # Start out with "no"
 1635: 
 1636: <Directory />
 1637: Options None
 1638: AllowOverride None
 1639: <IfModule mod_authz_core.c>
 1640:   Require all denied
 1641: </IfModule>
 1642: <IfModule !mod_authz_core.c>
 1643:   order deny,allow
 1644:   deny from all
 1645: </IfModule>
 1646: </Directory>
 1647: 
 1648: # Allow uploaded files to be served
 1649: 
 1650: <Directory "/home/httpd/lonUsers">
 1651: Options FollowSymLinks
 1652: AllowOverride None
 1653: <IfModule mod_authz_core.c>
 1654:   Require all granted
 1655: </IfModule>
 1656: <IfModule !mod_authz_core.c>
 1657:   order allow,deny
 1658:   allow from all
 1659: </IfModule>
 1660: </Directory>
 1661:  
 1662: # Yes to symbolic links and server-side includes
 1663: 
 1664: <Directory /home/httpd/html>
 1665: Options FollowSymLinks
 1666: AllowOverride None
 1667: <IfModule mod_authz_core.c>
 1668:   Require all granted
 1669: </IfModule>
 1670: <IfModule !mod_authz_core.c>
 1671:   order allow,deny
 1672:   allow from all
 1673: </IfModule>
 1674: </Directory>
 1675: 
 1676: # If it is in cgi-bin, then it can be executed as a CGI script.
 1677: 
 1678: <Directory /home/httpd/cgi-bin>
 1679: AllowOverride None
 1680: Options ExecCGI FollowSymLinks
 1681: <IfModule mod_authz_core.c>
 1682:   Require all granted
 1683: </IfModule>
 1684: <IfModule !mod_authz_core.c>
 1685:   order allow,deny
 1686:   allow from all
 1687: </IfModule>
 1688: </Directory>
 1689: 
 1690: # Allow serving of files in prtspool
 1691: 
 1692: <Directory "/home/httpd/prtspool/">
 1693: Options FollowSymLinks
 1694: AllowOverride None
 1695: <IfModule mod_authz_core.c>
 1696:   Require all granted
 1697: </IfModule>
 1698: <IfModule !mod_authz_core.c>
 1699:   order allow,deny
 1700:   allow from all
 1701: </IfModule>
 1702: </Directory>
 1703: 
 1704: # Allow serving of files in zipspool
 1705: 
 1706: <Directory "/home/httpd/zipspool/">
 1707: Options FollowSymLinks
 1708: AllowOverride None
 1709: <IfModule mod_authz_core.c>
 1710:   Require all granted
 1711: </IfModule>
 1712: <IfModule !mod_authz_core.c>
 1713:   order allow,deny
 1714:   allow from all
 1715: </IfModule>
 1716: </Directory>
 1717: 
 1718: # Allow serving of files in captchaspool
 1719: 
 1720: <Directory "/home/httpd/captchaspool/">
 1721: Options FollowSymLinks
 1722: AllowOverride None
 1723: <IfModule mod_authz_core.c>
 1724:   Require all granted
 1725: </IfModule>
 1726: <IfModule !mod_authz_core.c>
 1727:   order allow,deny
 1728:   allow from all
 1729: </IfModule>
 1730: </Directory>
 1731: 
 1732: <DirectoryMatch "^/home/httpd/html/priv/.+/">
 1733:    DirectoryIndex disabled
 1734: </DirectoryMatch>
 1735: 
 1736: <DirectoryMatch "^/home/httpd/html/res/.+/">
 1737:    DirectoryIndex disabled
 1738: </DirectoryMatch>
 1739: 
 1740: # ============================================================= Access Handlers
 1741: 
 1742: # ------------------------------------------------- Allow server-status reports
 1743: <Location /server-status>
 1744: PerlAccessHandler Apache::lonstatusacc
 1745: SetHandler server-status
 1746: </Location>
 1747: 
 1748: # ------------------------ Allow LON-CAPA "low-level" connection status reports
 1749: <LocationMatch "^/+lon-status/.*">
 1750: PerlAccessHandler Apache::lonstatusacc
 1751: ErrorDocument     406 /adm/roles
 1752: ErrorDocument     500 /adm/errorhandler
 1753: </LocationMatch>
 1754: 
 1755: # ------------------- Allow access to local system documentation from localhost
 1756: Alias /doc /usr/doc
 1757: <Directory /usr/doc>
 1758: Options Indexes FollowSymLinks
 1759: <IfModule mod_authz_host.c>
 1760:   Require local
 1761: </IfModule>
 1762: <IfModule !mod_authz_host.c>
 1763:   order deny,allow
 1764:   deny from all
 1765:   allow from localhost
 1766: </IfModule>
 1767: </Directory>
 1768: 
 1769: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
 1770: # ====================================== Internal Settings / Perl Configuration
 1771: 
 1772: PerlSetVar	 lonVersion  '<!-- VERSION -->'
 1773: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
 1774: PerlSetVar       lonBalanceDir /home/httpd/balanceIDs
 1775: PerlSetVar       lonDAVsessDir /home/httpd/webdav/sessionIDs
 1776: PerlSetVar       lonTabDir    /home/httpd/lonTabs
 1777: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 1778: PerlSetVar       lonIconsURL  /adm/lonIcons
 1779: PerlSetVar       londPort     5663
 1780: PerlSetVar       lonSysEMail  techsupport@loncapa.org
 1781: PerlSetVar       lonDaemons   /home/httpd/perl
 1782: PerlSetVar       lonLib       /home/httpd/lib
 1783: PerlSetVar       lonSockDir   /home/httpd/sockets
 1784: PerlSetVar       lonSockCreate   /home/httpd/sockets/common
 1785: PerlSetVar       lonDocRoot   /home/httpd/html
 1786: PerlSetVar       lonPrtDir    /home/httpd/prtspool
 1787: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
 1788: PerlSetVar       lonZipDir    /home/httpd/zipspool
 1789: PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 1790: PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 1791: PerlSetVar       lonLTIDir    /home/httpd/lonLTItmp
 1792: PerlSetVar       ltiIDsDir    /home/httpd/ltiIDs
 1793: PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 1794: # & separated list of % separated fields in order of
 1795: # - internal name to call it, 
 1796: # - regexp that it should match (done case-insensitively)
 1797: # - regexp that is should not match (done case-insensitively)
 1798: # - regexp that will pull out the version number into $1
 1799: # - a number that describes the minimum version that has mathml support
 1800: # - a number that describes the minimum number version that has unicode support
 1801: 
 1802: PerlSetVar       lonBrowsDet  explorer%msie%netscape%msie\s(\d+\.\d+)\;%9999%5&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&chrome%chrome%chromeframe%\s+chrome\/(\d+\.\d+)%9999%1&explorer%\s+rv\:\d+\.\d+%firefox%\s+rv\:(\d+\.\d+)%9999%5&opera%\sOPR\/\d+\.\d+%shouldnotmatch%\sOPR\/(\d+\.\d+)%9999%6&opera%^Opera\/9.80\s.+Version\/\d+\.\d+$%shouldnotmatch%Version\/(\d+\.\d+)$%9999%6&opera%^Opera\/\d+\.\d+\s%Version\/\d+\.\d+$%^Opera\/(\d+\.\d+)\s%9999%6
 1803: 
 1804: PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 1805: PerlSetVar       lonScansDir  /home/httpd/scantron
 1806: PerlSetVar       lonScriptTimeout 10
 1807: PerlSetVar	 BugzillaHost	https://bugs.loncapa.org/
 1808: PerlSetVar	 FAQHost	http://help.lon-capa.org/
 1809: # -----------------------------------------------------------------------------
 1810: # NOTE: lonSqlAccess key is the password for the MySQL user
 1811: # www@localhost.  This value must always be "localhostkey".
 1812: # The only security risk occurs when somebody logs in as 'www' on your system
 1813: # (in which case you have much bigger problems than whether or not they
 1814: # can access the non-authoritative loncapa database on your machine).
 1815: 
 1816: PerlSetVar       lonSqlAccess   localhostkey
 1817: 
 1818: #----------------------------------------------------------------------------
 1819: #
 1820: #   Parameters used by secure lond/lonc
 1821: 
 1822: #
 1823: #   Secure lond/lonc require ssl certificate and private
 1824: #   key files to function correctly.  The certificate
 1825: #   files need not be terribly secure, but the private key files
 1826: #   should be set up so that only www (the lonc/lond effective user)
 1827: #   can read them.
 1828: # 
 1829: #   The definition below is the full path to the directory that
 1830: #   contains the certificate and key files:
 1831: 
 1832: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1833: 
 1834: #
 1835: #  Secure lond/lonc require two certificates and a private host key.
 1836: #  The certificates required are that of the lonCAPA certificate authority
 1837: #  and the certificate that authority issued to this host.
 1838: #  lonnetCertificateAuthority is the name of the file that contains the
 1839: #                            lonCAPA certificate authority's certificate.
 1840: #  lonnetCertificate is the name of the file that contains the certificate
 1841: #                    issued to the host by the certificate authority.
 1842: #  Both of these variables are names of files assumed to be in 
 1843: #  lonCertificateDirectory:
 1844: 
 1845: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1846: PerlSetVar lonnetCertificate          lonhostcert.pem
 1847: PerlSetVar lonnetHostnameCertificate  lonhostnamecert.pem
 1848: PerlSetVar lonnetCertRevocationList   loncapaCAcrl.pem
 1849: 
 1850: #
 1851: #  To generate the request for a certificate, and to negotiate the
 1852: #  initial ssl connection, the host requires a private key.  This key
 1853: #  is created at lonCAPA install time.  Did we mention above that it
 1854: #  should be set so that only www can read it?  The variale below
 1855: #  is the name of the file relative to lonnetCertificateDirectory
 1856: #  that has the host's private key.  Did we remember to tell you to
 1857: #  keep the permissions on that file set to rw-------  (0600)?
 1858: #  
 1859: 
 1860: PerlSetVar lonnetPrivateKey         lonKey.pem
 1861: 
 1862: # Did we mention that the file described above must have
 1863: # permissions really locked down so that it can't be stolen?
 1864: 
 1865: #-------------------------------------------------------------------------
 1866: 
 1867: #   Parameters that define where all the ssl stuff is that's needed
 1868: #   to generate certificate requests and, on a system that's a CA
 1869: #   the certificate authority.
 1870: #    
 1871: #    SSLProgram    -> Path to the openssl command
 1872: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1873: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1874: #                     Authority.
 1875: #    SSLCAFile     -> Full path to the Certificate authority file 
 1876: #                    (on the cert manager system).
 1877: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1878: #    The following are good for the loncapa redhat installs and
 1879: #    the loncapa certificate authority system:
 1880: #
 1881: PerlSetVar SSLProgram	/usr/bin/openssl
 1882: PerlSetVar SSLDirectory /usr/share/ssl
 1883: PerlSetVar SSLCAConfig  loncapaca
 1884: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1885: PerlSetVar SSLEmail     certificate@lon-capa.org
 1886: 
 1887: #-------------------------------------------------------------------------
 1888: 
 1889: 
 1890: # ====================================== Include support for SSL rewrites
 1891: 
 1892: Include conf/loncapa_rewrite.conf
 1893: 
 1894: 
 1895: # ====================================== Include machine-specific configuration
 1896: 
 1897: Include conf/loncapa.conf
 1898: 
 1899: # ================================================= Include local configuration
 1900: 
 1901: Include conf/loncapa_apache_local*.conf
 1902: 
 1903: # ================================================== Initiate mod_perl starting
 1904: 
 1905: PerlRequire      conf/startup.pl
 1906: <IfDefine !MODPERL2>
 1907: PerlFreshRestart On
 1908: </IfDefine>

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