File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.285: download - view: text, annotated - select for diffs
Fri Dec 22 13:38:02 2023 UTC (5 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- .tex file in Resource Space or uploaded to Main Content area:
  - texdisplay parameter can determine whether TtH of MathJax is used for
    conversion (web context)
  - values in effect for contentopen, contentclose, and acc params honored

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

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