Diff for /loncom/loncapa_apache.conf between versions 1.236 and 1.265

version 1.236, 2015/12/03 20:40:16 version 1.265, 2018/12/27 20:11:29
Line 68  PerlAuthzHandler 'sub { return OK }' Line 68  PerlAuthzHandler 'sub { return OK }'
 </LocationMatch>  </LocationMatch>
   
 # Send proper expires header to avoid unnecessary HTTP request for static content  # Send proper expires header to avoid unnecessary HTTP request for static content
 <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax|/adm/daxe)">  <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax|/adm/daxe)">
         ExpiresActive On          ExpiresActive On
         ExpiresDefault "access plus 12 hours"          ExpiresDefault "access plus 12 hours"
         Header set Cache-Control "public, no-transform"          Header set Cache-Control "public, no-transform"
Line 270  ErrorDocument     406 /adm/notinit.html Line 270  ErrorDocument     406 /adm/notinit.html
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </LocationMatch>  </LocationMatch>
   
   <LocationMatch "^/adm/.*/ext\.tool$">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler        Apache::lonacc
   SetHandler              perl-script
   PerlHandler             Apache::londatecheck
   PerlHandler             Apache::lonipcheck
   PerlHandler             Apache::lonexttool
   ErrorDocument     404 /adm/notfound.html
   ErrorDocument     406 /adm/notinit.html
   ErrorDocument     500 /adm/errorhandler
   </LocationMatch>
   
   <LocationMatch "^/adm/placement$">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler        Apache::lonacc
   SetHandler              perl-script
   PerlHandler             Apache::lonplacementtest
   ErrorDocument     404 /adm/notfound.html
   ErrorDocument     406 /adm/notinit.html
   ErrorDocument     500 /adm/errorhandler
   </LocationMatch>
   
 <LocationMatch "^/+priv/.*">  <LocationMatch "^/+priv/.*">
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
Line 445  SetHandler perl-script Line 469  SetHandler perl-script
 PerlHandler Apache::lonxml  PerlHandler Apache::lonxml
 </LocationMatch>  </LocationMatch>
   
 <LocationMatch "^/daxeopen/priv/.*$">  <LocationMatch "^/daxepage/priv/">
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
 PerlAuthzHandler       Apache::loncacc  PerlAuthzHandler       Apache::loncacc
 SetHandler perl-script  
 ErrorDocument     403 /adm/login  ErrorDocument     403 /adm/login
 ErrorDocument     404 /adm/notfound.html  ErrorDocument     404 /adm/notfound.html
 ErrorDocument     406 /adm/unauthorized  ErrorDocument     406 /adm/unauthorized
 ErrorDocument     500 /adm/errorhandler  ErrorDocument     500 /adm/errorhandler
 </LocationMatch>  </LocationMatch>
   
 <LocationMatch "^/daxeopen/priv/.*\.(task|problem|exam|quiz|assess|survey|library)$">  <LocationMatch "^/daxeopen/">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::lonacc
   </LocationMatch>
   
   <LocationMatch "^/daxe(page|open)/uploaded/">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::lonacc
   ErrorDocument     403 /adm/login
   ErrorDocument     404 /adm/notfound.html
   ErrorDocument     406 /adm/unauthorized
   ErrorDocument     500 /adm/errorhandler
   </LocationMatch>
   
   <LocationMatch "^/daxepage/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
   SetHandler perl-script
   PerlHandler Apache::daxepage
   </LocationMatch>
   
   <LocationMatch "^/daxepage/uploaded/[^/]+/[^/]+/.*html?$">
   SetHandler perl-script
   PerlHandler Apache::daxepage
   </LocationMatch>
   
   <LocationMatch "^/daxeopen/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
   SetHandler perl-script
   PerlHandler Apache::daxeopen
   </LocationMatch>
   
   <LocationMatch "^/daxeopen/$">
 SetHandler perl-script  SetHandler perl-script
 PerlHandler Apache::daxeopen  PerlHandler Apache::daxeopen
 </LocationMatch>  </LocationMatch>
   
 <LocationMatch "^/daxeopen/priv/.*/$">  <LocationMatch "^/daxeopen/(res|priv)/(.+/)?$">
 SetHandler perl-script  SetHandler perl-script
 PerlHandler Apache::daxeopen  PerlHandler Apache::daxeopen
 </LocationMatch>  </LocationMatch>
   
   <LocationMatch "^/daxeopen/uploaded/[^/]+/[^/]+/.*html?$">
   SetHandler perl-script
   PerlHandler Apache::daxeopen
   </LocationMatch>
   
   <LocationMatch "(?i)^/daxeopen/priv/.+\.(?!task$|problem$|exam$|quiz$|assess$|survey$|library$|xml$|html$|htm$|xhtml$|xhtm$)[^.]*$">
 <IfModule mod_rewrite.c>  <IfModule mod_rewrite.c>
   RewriteEngine on    RewriteEngine on
   RewriteRule ^/daxeopen/(.*) /$1    RewriteRule /daxeopen/(.*) /$1
 </IfModule>  </IfModule>
   </LocationMatch>
   
   <LocationMatch "(?i)^/daxeopen/(res/.*\.(jpg|jpeg|gif|png|svg))$">
   <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteRule /daxeopen/(.*) /$1
   </IfModule>
   </LocationMatch>
   
 <LocationMatch "^/daxesave$">  <LocationMatch "^/daxesave$">
 AuthType LONCAPA  AuthType LONCAPA
Line 477  Require valid-user Line 545  Require valid-user
 PerlAuthzHandler       Apache::lonacc  PerlAuthzHandler       Apache::lonacc
 SetHandler perl-script  SetHandler perl-script
 PerlHandler Apache::daxesave  PerlHandler Apache::daxesave
 ErrorDocument     403 /adm/login  </LocationMatch>
   
   <Location /adm/coursepub>
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler Apache::lonacc
   SetHandler perl-script
   PerlHandler Apache::loncoursepub
 ErrorDocument     404 /adm/notfound.html  ErrorDocument     404 /adm/notfound.html
 ErrorDocument     406 /adm/unauthorized  
 ErrorDocument     500 /adm/errorhandler  ErrorDocument     500 /adm/errorhandler
 </LocationMatch>  </Location>
   
 <LocationMatch "^/adm/wrapper/">  <LocationMatch "^/adm/wrapper/">
 AuthType LONCAPA  AuthType LONCAPA
Line 679  SetHandler perl-script Line 753  SetHandler perl-script
 PerlHandler Apache::lonlogin  PerlHandler Apache::lonlogin
 </Location>  </Location>
   
   <LocationMatch "^/+adm/lti($|/)">
   SetHandler perl-script
   PerlHandler Apache::ltiauth
   </LocationMatch>
   
   <Location /adm/service/passback>
   SetHandler perl-script
   PerlHandler Apache::ltipassback
   </Location>
   
   <Location /adm/service/roster>
   SetHandler perl-script
   PerlHandler Apache::ltiroster
   </Location>
   
 <Location /adm/restrictedaccess>  <Location /adm/restrictedaccess>
 PerlAccessHandler      Apache::publiccheck  PerlAccessHandler      Apache::publiccheck
 AuthType LONCAPA  AuthType LONCAPA
Line 755  ErrorDocument     403 /adm/login Line 844  ErrorDocument     403 /adm/login
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </Location>  </Location>
   
   <Location /adm/annotation>
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::lonacc
   SetHandler perl-script
   PerlHandler Apache::admannotations
   ErrorDocument     403 /adm/login
   ErrorDocument     500 /adm/errorhandler
   </Location>
   
 <Location /adm/spellcheck>  <Location /adm/spellcheck>
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
Line 1350  PerlHandler Apache::groupsort Line 1449  PerlHandler Apache::groupsort
 PerlCleanupHandler Apache::groupsort::cleanup  PerlCleanupHandler Apache::groupsort::cleanup
 PerlCleanupHandler Apache::lonacc::cleanup  PerlCleanupHandler Apache::lonacc::cleanup
 ErrorDocument     403 /adm/login  ErrorDocument     403 /adm/login
   ErrorDocument     406 /adm/roles
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </Location>  </Location>
   
Line 1384  SetHandler             perl-script Line 1484  SetHandler             perl-script
 PerlHandler            Apache::lonblockingstatus  PerlHandler            Apache::lonblockingstatus
 </Location>  </Location>
   
   <Location /adm/accesstimes>
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::lonacc
   SetHandler             perl-script
   PerlHandler            Apache::lonaccesstimes
   ErrorDocument     403 /adm/login
   ErrorDocument     406 /adm/roles
   ErrorDocument     500 /adm/errorhandler
   </Location>
   
 <Location /adm/errorhandler>  <Location /adm/errorhandler>
 SetHandler perl-script  SetHandler perl-script
 PerlHandler Apache::lonerrorhandler  PerlHandler Apache::lonerrorhandler
Line 1464  SetHandler perl-script Line 1575  SetHandler perl-script
 PerlHandler Apache::spellcheck  PerlHandler Apache::spellcheck
 </LocationMatch>  </LocationMatch>
   
   <LocationMatch "^/tiny/[\w.]+/\w+$">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler Apache::lonacc
   SetHandler perl-script
   PerlHandler Apache::lontiny
   ErrorDocument     403 /adm/login
   ErrorDocument     406 /adm/roles
   ErrorDocument     500 /adm/errorhandler
   </LocationMatch>
   
 # ------------------------------------------------- Backdoor Adm Tests/Programs  # ------------------------------------------------- Backdoor Adm Tests/Programs
   
Line 1500  AllowOverride None Line 1620  AllowOverride None
 # Allow uploaded files to be served  # Allow uploaded files to be served
   
 <Directory "/home/httpd/lonUsers">  <Directory "/home/httpd/lonUsers">
 Options Includes FollowSymLinks  Options FollowSymLinks
 AllowOverride None  AllowOverride None
 <IfModule mod_authz_core.c>  <IfModule mod_authz_core.c>
   Require all granted    Require all granted
Line 1511  AllowOverride None Line 1631  AllowOverride None
 </IfModule>  </IfModule>
 </Directory>  </Directory>
     
 # Allow construction space files to be served  
   
 <Directory "/home/*/public_html/" >  
 Options Includes FollowSymLinks  
 AllowOverride  
 <IfModule mod_authz_core.c>  
   Require all granted  
 </IfModule>  
 <IfModule !mod_authz_core.c>  
   order allow,deny  
   allow from all  
 </IfModule>  
 </Directory>  
   
 # Yes to symbolic links and server-side includes  # Yes to symbolic links and server-side includes
   
 <Directory /home/httpd/html>  <Directory /home/httpd/html>
 Options Includes FollowSymLinks  Options FollowSymLinks
 AllowOverride None  AllowOverride None
 <IfModule mod_authz_core.c>  <IfModule mod_authz_core.c>
   Require all granted    Require all granted
Line 1556  Options ExecCGI FollowSymLinks Line 1662  Options ExecCGI FollowSymLinks
 # Allow serving of files in prtspool  # Allow serving of files in prtspool
   
 <Directory "/home/httpd/prtspool/">  <Directory "/home/httpd/prtspool/">
 Options Includes FollowSymLinks  Options FollowSymLinks
 AllowOverride None  AllowOverride None
 <IfModule mod_authz_core.c>  <IfModule mod_authz_core.c>
   Require all granted    Require all granted
Line 1570  AllowOverride None Line 1676  AllowOverride None
 # Allow serving of files in zipspool  # Allow serving of files in zipspool
   
 <Directory "/home/httpd/zipspool/">  <Directory "/home/httpd/zipspool/">
 Options Includes FollowSymLinks  Options FollowSymLinks
 AllowOverride None  AllowOverride None
 <IfModule mod_authz_core.c>  <IfModule mod_authz_core.c>
   Require all granted    Require all granted
Line 1584  AllowOverride None Line 1690  AllowOverride None
 # Allow serving of files in captchaspool  # Allow serving of files in captchaspool
   
 <Directory "/home/httpd/captchaspool/">  <Directory "/home/httpd/captchaspool/">
 Options Includes FollowSymLinks  Options FollowSymLinks
 AllowOverride None  AllowOverride None
 <IfModule mod_authz_core.c>  <IfModule mod_authz_core.c>
   Require all granted    Require all granted
Line 1637  Options Indexes FollowSymLinks Line 1743  Options Indexes FollowSymLinks
   
 PerlSetVar lonVersion  '<!-- VERSION -->'  PerlSetVar lonVersion  '<!-- VERSION -->'
 PerlSetVar       lonIDsDir    /home/httpd/lonIDs  PerlSetVar       lonIDsDir    /home/httpd/lonIDs
   PerlSetVar       lonBalanceDir /home/httpd/balanceIDs
 PerlSetVar       lonDAVsessDir /home/httpd/webdav/sessionIDs  PerlSetVar       lonDAVsessDir /home/httpd/webdav/sessionIDs
 PerlSetVar       lonTabDir    /home/httpd/lonTabs  PerlSetVar       lonTabDir    /home/httpd/lonTabs
 PerlSetVar       lonUsersDir  /home/httpd/lonUsers  PerlSetVar       lonUsersDir  /home/httpd/lonUsers
Line 1653  PerlSetVar       lonIncludes  /home/http Line 1760  PerlSetVar       lonIncludes  /home/http
 PerlSetVar       lonZipDir    /home/httpd/zipspool  PerlSetVar       lonZipDir    /home/httpd/zipspool
 PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool  PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 PerlSetVar       lonCaptchaDb     /home/httpd/captchadb   PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
   PerlSetVar       lonLTIDir    /home/httpd/lonLTItmp
 PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts  PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 # & separated list of % separated fields in order of  # & separated list of % separated fields in order of
 # - internal name to call it,   # - internal name to call it, 
Line 1707  PerlSetVar lonCertificateDirectory /home Line 1815  PerlSetVar lonCertificateDirectory /home
   
 PerlSetVar lonnetCertificateAuthority loncapaCA.pem  PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 PerlSetVar lonnetCertificate          lonhostcert.pem  PerlSetVar lonnetCertificate          lonhostcert.pem
   PerlSetVar lonnetHostnameCertificate  lonhostnamecert.pem
   PerlSetVar lonnetCertRevocationList   loncapaCAcrl.pem
   
 #  #
 #  To generate the request for a certificate, and to negotiate the  #  To generate the request for a certificate, and to negotiate the

Removed from v.1.236  
changed lines
  Added in v.1.265


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