File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.286: download - view: text, annotated - select for diffs
Mon Jan 8 02:23:45 2024 UTC (3 months, 3 weeks ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, HEAD
- contentopen, contentclose and acc parameters can apply to .tex files from
  /res/ imported into a course.

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

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