File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.277: download - view: text, annotated - select for diffs
Sat Jun 18 02:10:19 2022 UTC (22 months, 3 weeks ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Bug 6907
  For LTI-protected deep links in which username is included in launch payload
  compare username in payload with username for any existing LON-CAPA session
  in current web browser and expire old session, if different user.

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

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