File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.276: download - view: text, annotated - select for diffs
Sat Oct 2 13:54:29 2021 UTC (2 years, 7 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- For SAML authentication (Shibboleth) no caching of /adm/sso. Specify custom
  error pages for 403 and 500 errors.

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: 
    5: # $Id: loncapa_apache.conf,v 1.276 2021/10/02 13:54:29 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: <LocationMatch "^/+adm/lti($|/)">
  779: SetHandler perl-script
  780: PerlHandler Apache::ltiauth
  781: </LocationMatch>
  782: 
  783: <Location /adm/service/passback>
  784: SetHandler perl-script
  785: PerlHandler Apache::ltipassback
  786: </Location>
  787: 
  788: <Location /adm/service/roster>
  789: SetHandler perl-script
  790: PerlHandler Apache::ltiroster
  791: </Location>
  792: 
  793: <LocationMatch "^/adm/service/logout/\w+$">
  794: SetHandler perl-script
  795: PerlHandler Apache::ltilogout
  796: </LocationMatch>
  797: 
  798: <Location /adm/restrictedaccess>
  799: PerlAccessHandler      Apache::publiccheck
  800: AuthType LONCAPA
  801: Require valid-user
  802: PerlAuthzHandler       Apache::lonacc
  803: SetHandler perl-script
  804: PerlHandler Apache::restrictedaccess
  805: ErrorDocument	  500 /adm/errorhandler
  806: </Location>
  807: 
  808: <Location /adm/blockedaccess>
  809: PerlAccessHandler      Apache::publiccheck
  810: AuthType LONCAPA
  811: Require valid-user
  812: PerlAuthzHandler       Apache::lonacc
  813: SetHandler perl-script
  814: PerlHandler Apache::blockedaccess
  815: ErrorDocument     500 /adm/errorhandler
  816: </Location>
  817: 
  818: <Location /adm/protected>
  819: PerlAccessHandler      Apache::publiccheck
  820: AuthType LONCAPA
  821: Require valid-user
  822: PerlAuthzHandler       Apache::lonacc
  823: SetHandler perl-script
  824: PerlHandler Apache::lonprotected
  825: ErrorDocument     403 /adm/login
  826: ErrorDocument     500 /adm/errorhandler
  827: </Location>
  828: 
  829: <Location /adm/logout>
  830: AuthType LONCAPA
  831: Require valid-user
  832: PerlAuthzHandler       Apache::lonacc
  833: SetHandler perl-script
  834: PerlHandler Apache::lonlogout
  835: ErrorDocument     403 /adm/login
  836: ErrorDocument     409 /adm/preferences?action=lockwarning
  837: ErrorDocument	  500 /adm/errorhandler
  838: </Location>
  839: 
  840: <Location /adm/switchserver>
  841: AuthType LONCAPA
  842: Require valid-user
  843: PerlAuthzHandler       Apache::lonacc
  844: SetHandler perl-script
  845: PerlHandler Apache::switchserver
  846: ErrorDocument     403 /adm/login
  847: ErrorDocument	  500 /adm/errorhandler
  848: </Location>
  849: 
  850: <Location /adm/authenticate>
  851: SetHandler perl-script
  852: PerlHandler Apache::lonauth
  853: </Location>
  854: 
  855: <Location /adm/migrateuser>
  856: SetHandler perl-script
  857: PerlHandler Apache::migrateuser
  858: </Location>
  859: 
  860: <Location /adm/sso>
  861:   Header set Cache-Control "private,no-store,no-cache,max-age=0"
  862:   <IfModule mod_shib>
  863:     AuthType shibboleth
  864:     ShibUseEnvironment On
  865:     ShibRequestSetting requireSession 1
  866:     ShibRequestSetting redirectToSSL 443
  867:     require valid-user
  868:     PerlAuthzHandler       Apache::lonshibacc
  869:     PerlAuthzHandler       Apache::lonacc
  870:     ErrorDocument     403 /adm/login
  871:     ErrorDocument     500 /adm/errorhandler
  872:   </IfModule>
  873:   <IfModule !mod_shib>
  874:     PerlTypeHandler        Apache::lonnoshib
  875:   </IfModule>
  876: </Location>
  877: 
  878: <Location /adm/annotations>
  879: AuthType LONCAPA
  880: Require valid-user
  881: PerlAuthzHandler       Apache::lonacc
  882: SetHandler perl-script
  883: PerlHandler Apache::admannotations
  884: ErrorDocument     403 /adm/login
  885: ErrorDocument	  500 /adm/errorhandler
  886: </Location>
  887: 
  888: <Location /adm/annotation>
  889: AuthType LONCAPA
  890: Require valid-user
  891: PerlAuthzHandler       Apache::lonacc
  892: SetHandler perl-script
  893: PerlHandler Apache::admannotations
  894: ErrorDocument     403 /adm/login
  895: ErrorDocument     500 /adm/errorhandler
  896: </Location>
  897: 
  898: <Location /adm/spellcheck>
  899: AuthType LONCAPA
  900: Require valid-user
  901: PerlAuthzHandler       Apache::lonacc
  902: SetHandler perl-script
  903: PerlHandler Apache::lonspeller
  904: ErrorDocument     403 /adm/login
  905: ErrorDocument	  500 /adm/errorhandler
  906: </Location>
  907: 
  908: <Location /adm/flip>
  909: AuthType LONCAPA
  910: Require valid-user
  911: PerlAuthzHandler       Apache::lonacc
  912: SetHandler perl-script
  913: PerlHandler Apache::lonpageflip
  914: PerlCleanupHandler Apache::lonpageflip::cleanup
  915: PerlCleanupHandler	Apache::lonacc::cleanup
  916: ErrorDocument     406 /adm/roles
  917: ErrorDocument     403 /adm/login
  918: ErrorDocument	  500 /adm/errorhandler
  919: </Location>
  920: 
  921: <Location /adm/ambiguous>
  922: AuthType LONCAPA
  923: Require valid-user
  924: PerlAuthzHandler       Apache::lonacc
  925: SetHandler perl-script
  926: PerlHandler Apache::lonambiguous
  927: PerlCleanupHandler Apache::lonambiguous::cleanup
  928: PerlCleanupHandler	Apache::lonacc::cleanup
  929: ErrorDocument     403 /adm/login
  930: ErrorDocument	  500 /adm/errorhandler
  931: </Location>
  932: 
  933: <Location /adm/email>
  934: AuthType LONCAPA
  935: Require valid-user
  936: PerlAuthzHandler       Apache::lonacc
  937: SetHandler perl-script
  938: PerlHandler Apache::lonmsgdisplay
  939: ErrorDocument     403 /adm/login
  940: ErrorDocument	  500 /adm/errorhandler
  941: </Location>
  942: 
  943: <Location /adm/notify>
  944: AuthType LONCAPA
  945: Require valid-user
  946: PerlAuthzHandler       Apache::lonacc
  947: SetHandler perl-script
  948: PerlHandler Apache::lonnotify
  949: ErrorDocument     403 /adm/login
  950: ErrorDocument     500 /adm/errorhandler
  951: </Location>
  952: 
  953: <Location /adm/parmset>
  954: AuthType LONCAPA
  955: Require valid-user
  956: PerlAuthzHandler       Apache::lonacc
  957: SetHandler perl-script
  958: PerlHandler Apache::lonparmset
  959: ErrorDocument     403 /adm/login
  960: ErrorDocument     406 /adm/roles
  961: ErrorDocument	  500 /adm/errorhandler
  962: </Location>
  963: 
  964: <Location /adm/courseprefs>
  965: AuthType LONCAPA
  966: Require valid-user
  967: PerlAuthzHandler       Apache::lonacc
  968: SetHandler perl-script
  969: PerlHandler Apache::courseprefs
  970: ErrorDocument     403 /adm/login
  971: ErrorDocument     406 /adm/roles
  972: ErrorDocument     500 /adm/errorhandler
  973: </Location>
  974: 
  975: <Location /adm/slotrequest>
  976: AuthType LONCAPA
  977: Require valid-user
  978: PerlAuthzHandler       Apache::lonacc
  979: SetHandler perl-script
  980: PerlHandler Apache::slotrequest
  981: ErrorDocument     403 /adm/login
  982: ErrorDocument     406 /adm/roles
  983: ErrorDocument	  500 /adm/errorhandler
  984: </Location>
  985: 
  986: <Location /adm/wizard>
  987: AuthType LONCAPA
  988: Require valid-user
  989: PerlAuthzHandler       Apache::lonacc
  990: SetHandler perl-script
  991: PerlHandler Apache::lonwizard
  992: ErrorDocument     403 /adm/login
  993: ErrorDocument     406 /adm/roles
  994: ErrorDocument	  500 /adm/errorhandler
  995: </Location>
  996: 
  997: <Location /adm/grades>
  998: AuthType LONCAPA
  999: Require valid-user
 1000: PerlAuthzHandler       Apache::lonacc
 1001: SetHandler perl-script
 1002: PerlHandler Apache::grades
 1003: ErrorDocument     403 /adm/login
 1004: ErrorDocument     406 /adm/roles
 1005: ErrorDocument	  500 /adm/errorhandler
 1006: </Location>
 1007: 
 1008: <Location /adm/requestcourse>
 1009: AuthType LONCAPA
 1010: Require valid-user
 1011: PerlAuthzHandler       Apache::lonacc
 1012: SetHandler perl-script
 1013: PerlHandler Apache::lonrequestcourse
 1014: ErrorDocument     403 /adm/login
 1015: ErrorDocument     406 /adm/roles
 1016: ErrorDocument     500 /adm/errorhandler
 1017: </Location>
 1018: 
 1019: <Location /adm/createcourse>
 1020: AuthType LONCAPA
 1021: Require valid-user
 1022: PerlAuthzHandler       Apache::lonacc
 1023: SetHandler perl-script
 1024: PerlHandler Apache::loncreatecourse
 1025: ErrorDocument     403 /adm/login
 1026: ErrorDocument     406 /adm/roles
 1027: ErrorDocument	  500 /adm/errorhandler
 1028: </Location>
 1029: 
 1030: <Location /adm/modifycourse>
 1031: AuthType LONCAPA
 1032: Require valid-user
 1033: PerlAuthzHandler       Apache::lonacc
 1034: SetHandler perl-script
 1035: PerlHandler Apache::lonmodifycourse
 1036: ErrorDocument     403 /adm/login
 1037: ErrorDocument     406 /adm/roles
 1038: ErrorDocument     500 /adm/errorhandler
 1039: </Location>
 1040: 
 1041: <Location /adm/domainprefs>
 1042: AuthType LONCAPA
 1043: Require valid-user
 1044: PerlAuthzHandler       Apache::lonacc
 1045: SetHandler perl-script
 1046: PerlHandler Apache::domainprefs
 1047: ErrorDocument     403 /adm/login
 1048: ErrorDocument     406 /adm/roles
 1049: ErrorDocument     500 /adm/errorhandler
 1050: </Location>
 1051: 
 1052: <Location /adm/domainstatus>
 1053: PerlAccessHandler       Apache::lonstatusacc
 1054: SetHandler perl-script
 1055: PerlHandler Apache::domainstatus
 1056: ErrorDocument     403 /adm/login
 1057: ErrorDocument     406 /adm/roles
 1058: ErrorDocument     500 /adm/errorhandler
 1059: </Location>
 1060: 
 1061: <Location /adm/createuser>
 1062: AuthType LONCAPA
 1063: Require valid-user
 1064: PerlAuthzHandler       Apache::lonacc
 1065: SetHandler perl-script
 1066: PerlHandler Apache::loncreateuser
 1067: ErrorDocument     403 /adm/login
 1068: ErrorDocument     406 /adm/roles
 1069: ErrorDocument	  500 /adm/errorhandler
 1070: </Location>
 1071: 
 1072: <Location /adm/publish>
 1073: AuthType LONCAPA
 1074: Require valid-user
 1075: PerlAuthzHandler       Apache::lonacc
 1076: SetHandler perl-script
 1077: PerlHandler Apache::lonpublisher
 1078: ErrorDocument     403 /adm/login
 1079: ErrorDocument     404 /adm/notfound.html
 1080: ErrorDocument     406 /adm/unauthorized
 1081: ErrorDocument	  500 /adm/errorhandler
 1082: </Location>
 1083: 
 1084: <LocationMatch "^/+priv/.*/$">
 1085: AuthType LONCAPA
 1086: Require valid-user
 1087: PerlAuthzHandler       Apache::loncacc
 1088: SetHandler perl-script
 1089: PerlHandler Apache::lonpubdir
 1090: ErrorDocument     403 /adm/login
 1091: ErrorDocument     404 /adm/notfound.html
 1092: ErrorDocument     406 /adm/unauthorized
 1093: ErrorDocument	  500 /adm/errorhandler
 1094: </LocationMatch>
 1095: 
 1096: <Location /adm/unauthorized>
 1097: AuthType LONCAPA
 1098: Require valid-user
 1099: PerlAuthzHandler       Apache::lonacc
 1100: SetHandler perl-script
 1101: PerlHandler Apache::lonunauthorized
 1102: ErrorDocument     403 /adm/login
 1103: ErrorDocument     404 /adm/notfound.html
 1104: ErrorDocument	  500 /adm/errorhandler
 1105: </Location>
 1106: 
 1107: <Location /adm/retrieve>
 1108: AuthType LONCAPA
 1109: Require valid-user
 1110: PerlAuthzHandler       Apache::lonacc
 1111: SetHandler perl-script
 1112: PerlHandler Apache::lonretrieve
 1113: ErrorDocument     403 /adm/login
 1114: ErrorDocument     404 /adm/notfound.html
 1115: ErrorDocument     406 /adm/unauthorized
 1116: ErrorDocument	  500 /adm/errorhandler
 1117: </Location>
 1118: 
 1119: <Location /adm/cleanup>
 1120: AuthType LONCAPA
 1121: Require valid-user
 1122: PerlAuthzHandler       Apache::lonacc
 1123: SetHandler perl-script
 1124: PerlHandler Apache::loncleanup
 1125: ErrorDocument     403 /adm/login
 1126: ErrorDocument     404 /adm/notfound.html
 1127: ErrorDocument     406 /adm/unauthorized
 1128: ErrorDocument	  500 /adm/errorhandler
 1129: </Location>
 1130: 
 1131: <Location /adm/cfile>
 1132: AuthType LONCAPA
 1133: Require valid-user
 1134: PerlAuthzHandler       Apache::lonacc
 1135: SetHandler perl-script
 1136: PerlHandler Apache::loncfile
 1137: ErrorDocument     403 /adm/login
 1138: ErrorDocument     404 /adm/notfound.html
 1139: ErrorDocument     406 /adm/unauthorized
 1140: ErrorDocument	  500 /adm/errorhandler
 1141: </Location>
 1142: 
 1143: <Location /adm/diff>
 1144: AuthType LONCAPA
 1145: Require valid-user
 1146: PerlAuthzHandler       Apache::lonacc
 1147: SetHandler perl-script
 1148: PerlHandler Apache::londiff
 1149: ErrorDocument     403 /adm/login
 1150: ErrorDocument     404 /adm/notfound.html
 1151: ErrorDocument     406 /adm/unauthorized
 1152: ErrorDocument	  500 /adm/errorhandler
 1153: </Location>
 1154: 
 1155: <Location /adm/upload>
 1156: AuthType LONCAPA
 1157: Require valid-user
 1158: PerlAuthzHandler       Apache::lonacc
 1159: SetHandler perl-script
 1160: PerlHandler Apache::lonupload
 1161: ErrorDocument     403 /adm/login
 1162: ErrorDocument     404 /adm/notfound.html
 1163: ErrorDocument     406 /adm/unauthorized
 1164: ErrorDocument	  500 /adm/errorhandler
 1165: </Location>
 1166: 
 1167: <Location /adm/imsimport>
 1168: AuthType LONCAPA
 1169: Require valid-user
 1170: PerlAuthzHandler       Apache::lonacc
 1171: SetHandler perl-script
 1172: PerlHandler Apache::imsimport
 1173: ErrorDocument     403 /adm/login
 1174: ErrorDocument     404 /adm/notfound.html
 1175: ErrorDocument     406 /adm/unauthorized
 1176: ErrorDocument     500 /adm/errorhandler
 1177: </Location>
 1178: 
 1179: <Location /adm/testbank>
 1180: AuthType LONCAPA
 1181: Require valid-user
 1182: PerlAuthzHandler       Apache::lonacc
 1183: SetHandler perl-script
 1184: PerlHandler Apache::testbankimport
 1185: ErrorDocument     403 /adm/login
 1186: ErrorDocument     404 /adm/notfound.html
 1187: ErrorDocument     406 /adm/unauthorized
 1188: ErrorDocument     500 /adm/errorhandler
 1189: </Location>
 1190: 
 1191: <Location /adm/assesscalc>
 1192: AuthType LONCAPA
 1193: Require valid-user
 1194: PerlAuthzHandler       Apache::lonacc
 1195: SetHandler perl-script
 1196: PerlHandler Apache::lonspreadsheet
 1197: ErrorDocument     403 /adm/login
 1198: ErrorDocument     406 /adm/roles
 1199: ErrorDocument     413 /adm/overloaded.txt
 1200: ErrorDocument	  500 /adm/errorhandler
 1201: </Location>
 1202: 
 1203: <Location /adm/studentcalc>
 1204: AuthType LONCAPA
 1205: Require valid-user
 1206: PerlAuthzHandler       Apache::lonacc
 1207: SetHandler perl-script
 1208: PerlHandler Apache::lonspreadsheet
 1209: ErrorDocument     403 /adm/login
 1210: ErrorDocument     406 /adm/roles
 1211: ErrorDocument     413 /adm/overloaded.txt
 1212: ErrorDocument	  500 /adm/errorhandler
 1213: </Location>
 1214: 
 1215: <Location /adm/classcalc>
 1216: AuthType LONCAPA
 1217: Require valid-user
 1218: PerlAuthzHandler       Apache::lonacc
 1219: SetHandler perl-script
 1220: PerlHandler Apache::lonspreadsheet
 1221: ErrorDocument     403 /adm/login
 1222: ErrorDocument     406 /adm/roles
 1223: ErrorDocument     413 /adm/overloaded.txt
 1224: ErrorDocument	  500 /adm/errorhandler
 1225: </Location>
 1226: 
 1227: <Location /adm/dropadd>
 1228: AuthType LONCAPA
 1229: Require valid-user
 1230: PerlAuthzHandler       Apache::lonacc
 1231: SetHandler perl-script
 1232: PerlHandler Apache::londropadd
 1233: ErrorDocument     403 /adm/login
 1234: ErrorDocument     406 /adm/roles
 1235: ErrorDocument	  500 /adm/errorhandler
 1236: </Location>
 1237: 
 1238: <Location /adm/viewclasslist>
 1239: AuthType LONCAPA
 1240: Require valid-user
 1241: PerlAuthzHandler       Apache::lonacc
 1242: SetHandler perl-script
 1243: PerlHandler Apache::lonviewclasslist
 1244: ErrorDocument     403 /adm/login
 1245: ErrorDocument     406 /adm/roles
 1246: ErrorDocument	  500 /adm/errorhandler
 1247: </Location>
 1248: 
 1249: <Location /adm/coursegroups>
 1250: AuthType LONCAPA
 1251: Require valid-user
 1252: PerlAuthzHandler       Apache::lonacc
 1253: SetHandler perl-script
 1254: PerlHandler Apache::loncoursegroups
 1255: ErrorDocument     403 /adm/login
 1256: ErrorDocument     406 /adm/roles
 1257: ErrorDocument     500 /adm/errorhandler
 1258: </Location>
 1259: 
 1260: <Location /adm/groupboards>
 1261: AuthType LONCAPA
 1262: Require valid-user
 1263: PerlAuthzHandler       Apache::lonacc
 1264: SetHandler perl-script
 1265: PerlHandler Apache::groupboards
 1266: ErrorDocument     403 /adm/login
 1267: ErrorDocument     406 /adm/roles
 1268: ErrorDocument     500 /adm/errorhandler
 1269: </Location>
 1270: 
 1271: <Location /adm/grouproster>
 1272: AuthType LONCAPA
 1273: Require valid-user
 1274: PerlAuthzHandler       Apache::lonacc
 1275: SetHandler perl-script
 1276: PerlHandler Apache::grouproster
 1277: ErrorDocument     403 /adm/login
 1278: ErrorDocument     406 /adm/roles
 1279: ErrorDocument     500 /adm/errorhandler
 1280: </Location>
 1281: 
 1282: <Location /adm/whatsnew>
 1283: AuthType LONCAPA
 1284: Require valid-user
 1285: PerlAuthzHandler       Apache::lonacc
 1286: SetHandler perl-script
 1287: PerlHandler Apache::lonwhatsnew
 1288: ErrorDocument     403 /adm/login
 1289: ErrorDocument     406 /adm/roles
 1290: ErrorDocument     500 /adm/errorhandler
 1291: </Location>
 1292: 
 1293: <Location /adm/populate>
 1294: AuthType LONCAPA
 1295: Require valid-user
 1296: PerlAuthzHandler       Apache::lonacc
 1297: SetHandler perl-script
 1298: PerlHandler Apache::lonpopulate
 1299: ErrorDocument     403 /adm/login
 1300: ErrorDocument     406 /adm/roles
 1301: ErrorDocument     500 /adm/errorhandler
 1302: </Location>
 1303: 
 1304: <Location /adm/managekeys>
 1305: AuthType LONCAPA
 1306: Require valid-user
 1307: PerlAuthzHandler       Apache::lonacc
 1308: SetHandler perl-script
 1309: PerlHandler Apache::lonmanagekeys
 1310: ErrorDocument     403 /adm/login
 1311: ErrorDocument     406 /adm/roles
 1312: ErrorDocument	  500 /adm/errorhandler
 1313: </Location>
 1314: 
 1315: <Location /adm/printout>
 1316: AuthType LONCAPA
 1317: Require valid-user
 1318: PerlAuthzHandler       Apache::lonacc
 1319: SetHandler perl-script
 1320: PerlHandler Apache::lonprintout
 1321: ErrorDocument     403 /adm/login
 1322: ErrorDocument     413 /adm/overloaded.txt
 1323: ErrorDocument	  500 /adm/errorhandler
 1324: </Location>
 1325: 
 1326: <Location /adm/feedback>
 1327: AuthType LONCAPA
 1328: Require valid-user
 1329: PerlAuthzHandler       Apache::lonacc
 1330: SetHandler perl-script
 1331: PerlHandler Apache::lonfeedback
 1332: ErrorDocument     403 /adm/login
 1333: ErrorDocument	  500 /adm/errorhandler
 1334: </Location>
 1335: 
 1336: <Location /adm/coursedocs>
 1337: AuthType LONCAPA
 1338: Require valid-user
 1339: PerlAuthzHandler       Apache::lonacc
 1340: SetHandler perl-script
 1341: PerlHandler Apache::londocs
 1342: PerlCleanupHandler Apache::londocs::untiehash
 1343: PerlCleanupHandler	Apache::lonacc::cleanup
 1344: ErrorDocument     403 /adm/login
 1345: ErrorDocument	  500 /adm/errorhandler
 1346: </Location>
 1347: 
 1348: <Location /adm/supplemental>
 1349: AuthType LONCAPA
 1350: Require valid-user
 1351: PerlAuthzHandler       Apache::lonacc
 1352: SetHandler perl-script
 1353: PerlHandler Apache::londocs
 1354: PerlCleanupHandler Apache::londocs::untiehash
 1355: PerlCleanupHandler      Apache::lonacc::cleanup
 1356: ErrorDocument     403 /adm/login
 1357: ErrorDocument     500 /adm/errorhandler
 1358: </Location>
 1359: 
 1360: <Location /adm/imsimportdocs>
 1361: AuthType LONCAPA
 1362: Require valid-user
 1363: PerlAuthzHandler       Apache::lonacc
 1364: SetHandler perl-script
 1365: PerlHandler Apache::imsimportdocs
 1366: ErrorDocument     403 /adm/login
 1367: ErrorDocument     500 /adm/errorhandler
 1368: </Location>
 1369: 
 1370: <Location /adm/extresedit>
 1371: AuthType LONCAPA
 1372: Require valid-user
 1373: PerlAuthzHandler       Apache::lonacc
 1374: SetHandler perl-script
 1375: PerlHandler Apache::lonextresedit
 1376: ErrorDocument     403 /adm/login
 1377: ErrorDocument     500 /adm/errorhandler
 1378: </Location>
 1379: 
 1380: <LocationMatch "^/adm/announcements">
 1381: AuthType LONCAPA
 1382: Require valid-user
 1383: PerlAuthzHandler       Apache::lonacc
 1384: SetHandler perl-script
 1385: PerlHandler Apache::lonannounce
 1386: ErrorDocument     403 /adm/login
 1387: ErrorDocument	  500 /adm/errorhandler
 1388: </LocationMatch>
 1389: 
 1390: <Location /adm/chat>
 1391: AuthType LONCAPA
 1392: Require valid-user
 1393: PerlAuthzHandler       Apache::lonacc
 1394: SetHandler perl-script
 1395: PerlHandler Apache::lonchat
 1396: ErrorDocument	  500 /adm/errorhandler
 1397: </Location>
 1398: 
 1399: <Location /adm/chatfetch>
 1400: AuthType LONCAPA
 1401: Require valid-user
 1402: PerlAuthzHandler       Apache::lonacc
 1403: SetHandler perl-script
 1404: PerlHandler Apache::lonchatfetch
 1405: ErrorDocument     413 /adm/overloaded.txt
 1406: ErrorDocument	  500 /adm/errorhandler
 1407: </Location>
 1408: 
 1409: <Location /adm/groupchat>
 1410: AuthType LONCAPA
 1411: Require valid-user
 1412: PerlAuthzHandler       Apache::lonacc
 1413: SetHandler perl-script
 1414: PerlHandler Apache::longroupchat
 1415: ErrorDocument     403 /adm/login
 1416: ErrorDocument     500 /adm/errorhandler
 1417: </Location>
 1418: 
 1419: <Location /adm/evaluate>
 1420: AuthType LONCAPA
 1421: Require valid-user
 1422: PerlAuthzHandler       Apache::lonacc
 1423: SetHandler perl-script
 1424: PerlHandler Apache::lonevaluate
 1425: ErrorDocument     403 /adm/login
 1426: ErrorDocument	  500 /adm/errorhandler
 1427: </Location>
 1428: 
 1429: <Location /adm/preferences>
 1430: AuthType LONCAPA
 1431: Require valid-user
 1432: PerlAuthzHandler       Apache::lonacc
 1433: SetHandler perl-script
 1434: PerlHandler Apache::lonpreferences
 1435: ErrorDocument     403 /adm/login
 1436: ErrorDocument	  500 /adm/errorhandler
 1437: </Location>
 1438: 
 1439: <Location /adm/communicate>
 1440: AuthType LONCAPA
 1441: Require valid-user
 1442: PerlAuthzHandler       Apache::lonacc
 1443: SetHandler perl-script
 1444: PerlHandler Apache::loncommunicate
 1445: ErrorDocument     403 /adm/login
 1446: ErrorDocument	  500 /adm/errorhandler
 1447: </Location>
 1448: 
 1449: <Location /adm/searchcat>
 1450: AuthType LONCAPA
 1451: Require valid-user
 1452: PerlAuthzHandler       Apache::lonacc
 1453: SetHandler perl-script
 1454: PerlHandler Apache::lonsearchcat
 1455: PerlCleanupHandler Apache::lonsearchcat::cleanup
 1456: PerlCleanupHandler	Apache::lonacc::cleanup
 1457: ErrorDocument     403 /adm/login
 1458: ErrorDocument     413 /adm/overloaded.txt
 1459: ErrorDocument	  500 /adm/errorhandler
 1460: </Location>
 1461: 
 1462: <Location /adm/navmaps>
 1463: AuthType LONCAPA
 1464: Require valid-user
 1465: PerlAuthzHandler       Apache::lonacc
 1466: SetHandler perl-script
 1467: PerlHandler Apache::lonnavdisplay
 1468: ErrorDocument     403 /adm/login
 1469: ErrorDocument     406 /adm/roles
 1470: ErrorDocument	  500 /adm/errorhandler
 1471: </Location>
 1472: 
 1473: <Location /adm/quickgrades>
 1474: AuthType LONCAPA
 1475: Require valid-user
 1476: PerlAuthzHandler       Apache::lonacc
 1477: SetHandler perl-script
 1478: PerlHandler Apache::lonquickgrades
 1479: ErrorDocument     403 /adm/login
 1480: ErrorDocument     406 /adm/roles
 1481: ErrorDocument     500 /adm/errorhandler
 1482: </Location>
 1483: 
 1484: <Location /adm/groupsort>
 1485: AuthType LONCAPA
 1486: Require valid-user
 1487: PerlAuthzHandler	Apache::lonacc
 1488: SetHandler perl-script
 1489: PerlHandler Apache::groupsort
 1490: PerlCleanupHandler Apache::groupsort::cleanup
 1491: PerlCleanupHandler	Apache::lonacc::cleanup
 1492: ErrorDocument     403 /adm/login
 1493: ErrorDocument     406 /adm/roles
 1494: ErrorDocument	  500 /adm/errorhandler
 1495: </Location>
 1496: 
 1497: <Location /adm/wishlist>
 1498: AuthType LONCAPA
 1499: Require valid-user
 1500: PerlAuthzHandler       Apache::lonacc
 1501: SetHandler perl-script
 1502: PerlHandler Apache::lonwishlistdisplay
 1503: ErrorDocument     403 /adm/login
 1504: ErrorDocument     406 /adm/roles
 1505: ErrorDocument	  500 /adm/errorhandler
 1506: </Location>
 1507: 
 1508: <Location /adm/setblock>
 1509: AuthType LONCAPA
 1510: Require valid-user
 1511: PerlAuthzHandler       Apache::lonacc
 1512: SetHandler             perl-script
 1513: PerlHandler            Apache::lonblockingmenu
 1514: ErrorDocument     403 /adm/login
 1515: ErrorDocument     406 /adm/roles
 1516: ErrorDocument     500 /adm/errorhandler
 1517: </Location>
 1518: 
 1519: <Location /adm/blockingstatus>
 1520: PerlAccessHandler      Apache::publiccheck
 1521: AuthType LONCAPA
 1522: Require valid-user
 1523: PerlAuthzHandler       Apache::lonacc
 1524: SetHandler             perl-script
 1525: PerlHandler            Apache::lonblockingstatus
 1526: </Location>
 1527: 
 1528: <Location /adm/accesstimes>
 1529: AuthType LONCAPA
 1530: Require valid-user
 1531: PerlAuthzHandler       Apache::lonacc
 1532: SetHandler             perl-script
 1533: PerlHandler            Apache::lonaccesstimes
 1534: ErrorDocument     403 /adm/login
 1535: ErrorDocument     406 /adm/roles
 1536: ErrorDocument     500 /adm/errorhandler
 1537: </Location>
 1538: 
 1539: <Location /adm/errorhandler>
 1540: SetHandler perl-script
 1541: PerlHandler Apache::lonerrorhandler
 1542: </Location>
 1543: 
 1544: <LocationMatch "^/adm/help/.*\.hlp$">
 1545: AuthType LONCAPA
 1546: Require valid-user
 1547: PerlAccessHandler      Apache::publiccheck
 1548: PerlAuthzHandler	Apache::lonacc
 1549: SetHandler perl-script
 1550: PerlHandler Apache::lonhelp
 1551: ErrorDocument	  500 /adm/errorhandler
 1552: </LocationMatch>
 1553: 
 1554: <LocationMatch "^/adm/helpmenu">
 1555: AuthType LONCAPA
 1556: Require valid-user
 1557: PerlAuthzHandler       Apache::lonacc
 1558: SetHandler perl-script
 1559: PerlHandler Apache::lonhelpmenu
 1560: ErrorDocument	  500 /adm/errorhandler
 1561: </LocationMatch>
 1562: 
 1563: <LocationMatch "^/adm/support">
 1564: AuthType LONCAPA
 1565: Require valid-user
 1566: PerlAuthzHandler       Apache::lonacc
 1567: SetHandler perl-script
 1568: PerlHandler Apache::lonsupportreq
 1569: ErrorDocument	  500 /adm/errorhandler
 1570: </LocationMatch>
 1571: 
 1572: <LocationMatch "^/adm/helpdesk">
 1573: SetHandler perl-script
 1574: PerlHandler Apache::lonsupportreq
 1575: ErrorDocument	  500 /adm/errorhandler
 1576: </LocationMatch>
 1577: 
 1578: <LocationMatch "^/adm/css/.*\.css$">
 1579: SetHandler perl-script
 1580: PerlHandler Apache::loncss
 1581: ErrorDocument	  500 /adm/errorhandler
 1582: </LocationMatch>
 1583: 
 1584: <LocationMatch "^/adm/coursecatalog">
 1585: SetHandler perl-script
 1586: PerlHandler Apache::coursecatalog
 1587: ErrorDocument	  500 /adm/errorhandler
 1588: </LocationMatch>
 1589: 
 1590: <LocationMatch "^/adm/resetpw">
 1591: SetHandler perl-script
 1592: PerlHandler Apache::resetpw
 1593: ErrorDocument     500 /adm/errorhandler
 1594: </LocationMatch>
 1595: 
 1596: <LocationMatch "^/adm/selfenroll">
 1597: SetHandler perl-script
 1598: PerlHandler Apache::selfenroll
 1599: ErrorDocument     500 /adm/errorhandler
 1600: </LocationMatch>
 1601: 
 1602: <LocationMatch "^/adm/createaccount">
 1603: SetHandler perl-script
 1604: PerlHandler Apache::createaccount
 1605: ErrorDocument     500 /adm/errorhandler
 1606: </LocationMatch>
 1607: 
 1608: <LocationMatch "^/adm/dns">
 1609: SetHandler perl-script
 1610: PerlHandler Apache::londns
 1611: ErrorDocument     500 /adm/errorhandler
 1612: </LocationMatch>
 1613: 
 1614: <LocationMatch "^/ajax/spellcheck">
 1615: SetHandler perl-script
 1616: PerlHandler Apache::spellcheck
 1617: </LocationMatch>
 1618: 
 1619: <LocationMatch "^/tiny/[\w.-]+/\w+$">
 1620: AuthType LONCAPA
 1621: Require valid-user
 1622: PerlAuthzHandler Apache::lonacc
 1623: SetHandler perl-script
 1624: PerlHandler Apache::lontiny
 1625: ErrorDocument     403 /adm/login
 1626: ErrorDocument     406 /adm/roles
 1627: ErrorDocument     500 /adm/errorhandler
 1628: </LocationMatch>
 1629: 
 1630: # ------------------------------------------------- Backdoor Adm Tests/Programs
 1631: 
 1632: <Location /adm/test>
 1633: PerlAccessHandler Apache::lonstatusacc
 1634: SetHandler perl-script
 1635: PerlHandler Apache::lontest
 1636: </Location>
 1637: 
 1638: # ------------------------------------------------------- Shutting down a child
 1639: 
 1640: PerlChildExitHandler Apache::lonacc::goodbye
 1641: 
 1642: #
 1643: # LON-CAPA Section (extensions to access.conf permission configuration)
 1644: #
 1645: # =========================================================== Directory Options
 1646: 
 1647: # Start out with "no"
 1648: 
 1649: <Directory />
 1650: Options None
 1651: AllowOverride None
 1652: <IfModule mod_authz_core.c>
 1653:   Require all denied
 1654: </IfModule>
 1655: <IfModule !mod_authz_core.c>
 1656:   order deny,allow
 1657:   deny from all
 1658: </IfModule>
 1659: </Directory>
 1660: 
 1661: # Allow uploaded files to be served
 1662: 
 1663: <Directory "/home/httpd/lonUsers">
 1664: Options FollowSymLinks
 1665: AllowOverride None
 1666: <IfModule mod_authz_core.c>
 1667:   Require all granted
 1668: </IfModule>
 1669: <IfModule !mod_authz_core.c>
 1670:   order allow,deny
 1671:   allow from all
 1672: </IfModule>
 1673: </Directory>
 1674:  
 1675: # Yes to symbolic links and server-side includes
 1676: 
 1677: <Directory /home/httpd/html>
 1678: Options FollowSymLinks
 1679: AllowOverride None
 1680: <IfModule mod_authz_core.c>
 1681:   Require all granted
 1682: </IfModule>
 1683: <IfModule !mod_authz_core.c>
 1684:   order allow,deny
 1685:   allow from all
 1686: </IfModule>
 1687: </Directory>
 1688: 
 1689: # If it is in cgi-bin, then it can be executed as a CGI script.
 1690: 
 1691: <Directory /home/httpd/cgi-bin>
 1692: AllowOverride None
 1693: Options ExecCGI FollowSymLinks
 1694: <IfModule mod_authz_core.c>
 1695:   Require all granted
 1696: </IfModule>
 1697: <IfModule !mod_authz_core.c>
 1698:   order allow,deny
 1699:   allow from all
 1700: </IfModule>
 1701: </Directory>
 1702: 
 1703: # Allow serving of files in prtspool
 1704: 
 1705: <Directory "/home/httpd/prtspool/">
 1706: Options FollowSymLinks
 1707: AllowOverride None
 1708: <IfModule mod_authz_core.c>
 1709:   Require all granted
 1710: </IfModule>
 1711: <IfModule !mod_authz_core.c>
 1712:   order allow,deny
 1713:   allow from all
 1714: </IfModule>
 1715: </Directory>
 1716: 
 1717: # Allow serving of files in zipspool
 1718: 
 1719: <Directory "/home/httpd/zipspool/">
 1720: Options FollowSymLinks
 1721: AllowOverride None
 1722: <IfModule mod_authz_core.c>
 1723:   Require all granted
 1724: </IfModule>
 1725: <IfModule !mod_authz_core.c>
 1726:   order allow,deny
 1727:   allow from all
 1728: </IfModule>
 1729: </Directory>
 1730: 
 1731: # Allow serving of files in captchaspool
 1732: 
 1733: <Directory "/home/httpd/captchaspool/">
 1734: Options FollowSymLinks
 1735: AllowOverride None
 1736: <IfModule mod_authz_core.c>
 1737:   Require all granted
 1738: </IfModule>
 1739: <IfModule !mod_authz_core.c>
 1740:   order allow,deny
 1741:   allow from all
 1742: </IfModule>
 1743: </Directory>
 1744: 
 1745: <DirectoryMatch "^/home/httpd/html/priv/.+/">
 1746:    DirectoryIndex disabled
 1747: </DirectoryMatch>
 1748: 
 1749: <DirectoryMatch "^/home/httpd/html/res/.+/">
 1750:    DirectoryIndex disabled
 1751: </DirectoryMatch>
 1752: 
 1753: # ============================================================= Access Handlers
 1754: 
 1755: # ------------------------------------------------- Allow server-status reports
 1756: <Location /server-status>
 1757: PerlAccessHandler Apache::lonstatusacc
 1758: SetHandler server-status
 1759: </Location>
 1760: 
 1761: # ------------------------ Allow LON-CAPA "low-level" connection status reports
 1762: <LocationMatch "^/+lon-status/.*">
 1763: PerlAccessHandler Apache::lonstatusacc
 1764: ErrorDocument     406 /adm/roles
 1765: ErrorDocument     500 /adm/errorhandler
 1766: </LocationMatch>
 1767: 
 1768: # ------------------- Allow access to local system documentation from localhost
 1769: Alias /doc /usr/doc
 1770: <Directory /usr/doc>
 1771: Options Indexes FollowSymLinks
 1772: <IfModule mod_authz_host.c>
 1773:   Require local
 1774: </IfModule>
 1775: <IfModule !mod_authz_host.c>
 1776:   order deny,allow
 1777:   deny from all
 1778:   allow from localhost
 1779: </IfModule>
 1780: </Directory>
 1781: 
 1782: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
 1783: # ====================================== Internal Settings / Perl Configuration
 1784: 
 1785: PerlSetVar	 lonVersion  '<!-- VERSION -->'
 1786: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
 1787: PerlSetVar       lonBalanceDir /home/httpd/balanceIDs
 1788: PerlSetVar       lonDAVsessDir /home/httpd/webdav/sessionIDs
 1789: PerlSetVar       lonTabDir    /home/httpd/lonTabs
 1790: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 1791: PerlSetVar       lonIconsURL  /adm/lonIcons
 1792: PerlSetVar       londPort     5663
 1793: PerlSetVar       lonSysEMail  techsupport@loncapa.org
 1794: PerlSetVar       lonDaemons   /home/httpd/perl
 1795: PerlSetVar       lonLib       /home/httpd/lib
 1796: PerlSetVar       lonSockDir   /home/httpd/sockets
 1797: PerlSetVar       lonSockCreate   /home/httpd/sockets/common
 1798: PerlSetVar       lonDocRoot   /home/httpd/html
 1799: PerlSetVar       lonPrtDir    /home/httpd/prtspool
 1800: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
 1801: PerlSetVar       lonZipDir    /home/httpd/zipspool
 1802: PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 1803: PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 1804: PerlSetVar       lonLTIDir    /home/httpd/lonLTItmp
 1805: PerlSetVar       ltiIDsDir    /home/httpd/ltiIDs
 1806: PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 1807: # & separated list of % separated fields in order of
 1808: # - internal name to call it, 
 1809: # - regexp that it should match (done case-insensitively)
 1810: # - regexp that is should not match (done case-insensitively)
 1811: # - regexp that will pull out the version number into $1
 1812: # - a number that describes the minimum version that has mathml support
 1813: # - a number that describes the minimum number version that has unicode support
 1814: 
 1815: 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
 1816: 
 1817: PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 1818: PerlSetVar       lonScansDir  /home/httpd/scantron
 1819: PerlSetVar       lonScriptTimeout 10
 1820: PerlSetVar	 BugzillaHost	https://bugs.loncapa.org/
 1821: PerlSetVar	 FAQHost	http://help.lon-capa.org/
 1822: # -----------------------------------------------------------------------------
 1823: # NOTE: lonSqlAccess key is the password for the MySQL user
 1824: # www@localhost.  This value must always be "localhostkey".
 1825: # The only security risk occurs when somebody logs in as 'www' on your system
 1826: # (in which case you have much bigger problems than whether or not they
 1827: # can access the non-authoritative loncapa database on your machine).
 1828: 
 1829: PerlSetVar       lonSqlAccess   localhostkey
 1830: 
 1831: #----------------------------------------------------------------------------
 1832: #
 1833: #   Parameters used by secure lond/lonc
 1834: 
 1835: #
 1836: #   Secure lond/lonc require ssl certificate and private
 1837: #   key files to function correctly.  The certificate
 1838: #   files need not be terribly secure, but the private key files
 1839: #   should be set up so that only www (the lonc/lond effective user)
 1840: #   can read them.
 1841: # 
 1842: #   The definition below is the full path to the directory that
 1843: #   contains the certificate and key files:
 1844: 
 1845: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1846: 
 1847: #
 1848: #  Secure lond/lonc require two certificates and a private host key.
 1849: #  The certificates required are that of the lonCAPA certificate authority
 1850: #  and the certificate that authority issued to this host.
 1851: #  lonnetCertificateAuthority is the name of the file that contains the
 1852: #                            lonCAPA certificate authority's certificate.
 1853: #  lonnetCertificate is the name of the file that contains the certificate
 1854: #                    issued to the host by the certificate authority.
 1855: #  Both of these variables are names of files assumed to be in 
 1856: #  lonCertificateDirectory:
 1857: 
 1858: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1859: PerlSetVar lonnetCertificate          lonhostcert.pem
 1860: PerlSetVar lonnetHostnameCertificate  lonhostnamecert.pem
 1861: PerlSetVar lonnetCertRevocationList   loncapaCAcrl.pem
 1862: 
 1863: #
 1864: #  To generate the request for a certificate, and to negotiate the
 1865: #  initial ssl connection, the host requires a private key.  This key
 1866: #  is created at lonCAPA install time.  Did we mention above that it
 1867: #  should be set so that only www can read it?  The variale below
 1868: #  is the name of the file relative to lonnetCertificateDirectory
 1869: #  that has the host's private key.  Did we remember to tell you to
 1870: #  keep the permissions on that file set to rw-------  (0600)?
 1871: #  
 1872: 
 1873: PerlSetVar lonnetPrivateKey         lonKey.pem
 1874: 
 1875: # Did we mention that the file described above must have
 1876: # permissions really locked down so that it can't be stolen?
 1877: 
 1878: #-------------------------------------------------------------------------
 1879: 
 1880: #   Parameters that define where all the ssl stuff is that's needed
 1881: #   to generate certificate requests and, on a system that's a CA
 1882: #   the certificate authority.
 1883: #    
 1884: #    SSLProgram    -> Path to the openssl command
 1885: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1886: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1887: #                     Authority.
 1888: #    SSLCAFile     -> Full path to the Certificate authority file 
 1889: #                    (on the cert manager system).
 1890: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1891: #    The following are good for the loncapa redhat installs and
 1892: #    the loncapa certificate authority system:
 1893: #
 1894: PerlSetVar SSLProgram	/usr/bin/openssl
 1895: PerlSetVar SSLDirectory /usr/share/ssl
 1896: PerlSetVar SSLCAConfig  loncapaca
 1897: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1898: PerlSetVar SSLEmail     certificate@lon-capa.org
 1899: 
 1900: #-------------------------------------------------------------------------
 1901: 
 1902: 
 1903: # ====================================== Include support for SSL rewrites
 1904: 
 1905: Include conf/loncapa_rewrite.conf
 1906: 
 1907: 
 1908: # ====================================== Include machine-specific configuration
 1909: 
 1910: Include conf/loncapa.conf
 1911: 
 1912: # ================================================= Include local configuration
 1913: 
 1914: Include conf/loncapa_apache_local*.conf
 1915: 
 1916: # ================================================== Initiate mod_perl starting
 1917: 
 1918: PerlRequire      conf/startup.pl
 1919: <IfDefine !MODPERL2>
 1920: PerlFreshRestart On
 1921: </IfDefine>

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