Diff for /loncom/loncapa_apache.conf between versions 1.217 and 1.247

version 1.217, 2012/08/17 18:02:35 version 1.247, 2016/07/01 20:00:07
Line 1 Line 1
 ##  ##
 ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file  ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
 ##  ##
 ## $Id$  
 ##  # $Id$
   
 #  #
 # LON-CAPA Section (extensions to httpd.conf daemon configuration)  # LON-CAPA Section (extensions to httpd.conf daemon configuration)
Line 18  Group www Line 18  Group www
   
 # ======================================================= Shared Object Modules  # ======================================================= Shared Object Modules
   
 LoadModule perl_module       modules/libperl.so  <IfModule !perl_module>
       LoadModule perl_module       modules/libperl.so
   </IfModule>
 <IfDefine !MODPERL2>  <IfDefine !MODPERL2>
 AddModule mod_perl.c  AddModule mod_perl.c
 </IfDefine>  </IfDefine>
Line 28  PerlSetVar MODPERL2 1 Line 30  PerlSetVar MODPERL2 1
 </IfDefine>  </IfDefine>
 # =============================================================== Miscellaneous  # =============================================================== Miscellaneous
   
 ServerAdmin korte@lite.msu.edu  ServerAdmin consortium@loncapa.org
 ExtendedStatus On  ExtendedStatus On
 #  #
 # LON-CAPA Section (extensions to srm.conf name space servicing)  # LON-CAPA Section (extensions to srm.conf name space servicing)
Line 62  PerlSetVar lonOtherAuthen no Line 64  PerlSetVar lonOtherAuthen no
   
 #PerlWarn On  #PerlWarn On
 <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">  <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
 PerlAuthenHandler 'sub { return OK }'   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)">  <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 268  ErrorDocument     406 /adm/notinit.html Line 270  ErrorDocument     406 /adm/notinit.html
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </LocationMatch>  </LocationMatch>
   
   <LocationMatch "^/adm/.*/exttools?$">
   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 279  ErrorDocument     406 /adm/unauthorized Line 305  ErrorDocument     406 /adm/unauthorized
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </LocationMatch>  </LocationMatch>
   
 <LocationMatch "^/+webdav/[\w\-]+/[\w\-]+/">  <LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/">
   <IfModule mod_dav.c>    <IfModule mod_dav.c>
     <IfModule mod_ssl.c>      <IfModule mod_ssl.c>
       AuthType Basic        AuthType Basic
Line 414  ErrorDocument     413 /adm/overloaded.tx Line 440  ErrorDocument     413 /adm/overloaded.tx
 <LocationMatch "^/adm/bombs/">  <LocationMatch "^/adm/bombs/">
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
 SetHandler perl-script  
 PerlAuthzHandler Apache::lonacc  PerlAuthzHandler Apache::lonacc
   SetHandler perl-script
 PerlHandler Apache::lonmeta  PerlHandler Apache::lonmeta
 </LocationMatch>  </LocationMatch>
   
Line 443  SetHandler perl-script Line 469  SetHandler perl-script
 PerlHandler Apache::lonxml  PerlHandler Apache::lonxml
 </LocationMatch>  </LocationMatch>
   
   <LocationMatch "^/daxe(page|open)/priv/">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::loncacc
   ErrorDocument     403 /adm/login
   ErrorDocument     404 /adm/notfound.html
   ErrorDocument     406 /adm/unauthorized
   ErrorDocument     500 /adm/errorhandler
   </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/priv/.*/$">
   SetHandler perl-script
   PerlHandler Apache::daxeopen
   </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>
     RewriteEngine on
     RewriteRule /daxeopen/(.*) /$1
   </IfModule>
   </LocationMatch>
   
   <LocationMatch "^/daxesave$">
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::lonacc
   SetHandler perl-script
   PerlHandler Apache::daxesave
   </LocationMatch>
   
   <Location /adm/coursepub>
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler Apache::lonacc
   SetHandler perl-script
   PerlHandler Apache::loncoursepub
   ErrorDocument     404 /adm/notfound.html
   ErrorDocument     500 /adm/errorhandler
   </Location>
   
 <LocationMatch "^/adm/wrapper/">  <LocationMatch "^/adm/wrapper/">
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
Line 643  PerlHandler Apache::lonlogin Line 739  PerlHandler Apache::lonlogin
 PerlAccessHandler      Apache::publiccheck  PerlAccessHandler      Apache::publiccheck
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
 SetHandler perl-script  
 PerlAuthzHandler       Apache::lonacc  PerlAuthzHandler       Apache::lonacc
   SetHandler perl-script
 PerlHandler Apache::restrictedaccess  PerlHandler Apache::restrictedaccess
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </Location>  </Location>
Line 653  ErrorDocument   500 /adm/errorhandler Line 749  ErrorDocument   500 /adm/errorhandler
 PerlAccessHandler      Apache::publiccheck  PerlAccessHandler      Apache::publiccheck
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
 SetHandler perl-script  
 PerlAuthzHandler       Apache::lonacc  PerlAuthzHandler       Apache::lonacc
   SetHandler perl-script
 PerlHandler Apache::blockedaccess  PerlHandler Apache::blockedaccess
 ErrorDocument     500 /adm/errorhandler  ErrorDocument     500 /adm/errorhandler
 </Location>  </Location>
Line 1187  ErrorDocument     403 /adm/login Line 1283  ErrorDocument     403 /adm/login
 ErrorDocument     500 /adm/errorhandler  ErrorDocument     500 /adm/errorhandler
 </Location>  </Location>
   
   <Location /adm/extresedit>
   AuthType LONCAPA
   Require valid-user
   PerlAuthzHandler       Apache::lonacc
   SetHandler perl-script
   PerlHandler Apache::lonextresedit
   ErrorDocument     403 /adm/login
   ErrorDocument     500 /adm/errorhandler
   </Location>
   
 <LocationMatch "^/adm/announcements">  <LocationMatch "^/adm/announcements">
 AuthType LONCAPA  AuthType LONCAPA
 Require valid-user  Require valid-user
Line 1373  PerlHandler Apache::lonsupportreq Line 1479  PerlHandler Apache::lonsupportreq
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
 </LocationMatch>  </LocationMatch>
   
 <LocationMatch "^/adm/css">  <LocationMatch "^/adm/css/.*\.css$">
 SetHandler perl-script  SetHandler perl-script
 PerlHandler Apache::loncss  PerlHandler Apache::loncss
 ErrorDocument  500 /adm/errorhandler  ErrorDocument  500 /adm/errorhandler
Line 1409  PerlHandler Apache::londns Line 1515  PerlHandler Apache::londns
 ErrorDocument     500 /adm/errorhandler  ErrorDocument     500 /adm/errorhandler
 </LocationMatch>  </LocationMatch>
   
   <LocationMatch "^/ajax/spellcheck">
   SetHandler perl-script
   PerlHandler Apache::spellcheck
   </LocationMatch>
   
   
   
 # ------------------------------------------------- Backdoor Adm Tests/Programs  # ------------------------------------------------- Backdoor Adm Tests/Programs
   
 <Location /adm/test>  <Location /adm/test>
Line 1431  PerlChildExitHandler Apache::lonacc::goo Line 1544  PerlChildExitHandler Apache::lonacc::goo
 <Directory />  <Directory />
 Options None  Options None
 AllowOverride None  AllowOverride None
 order deny,allow  <IfModule mod_authz_core.c>
 deny from all    Require all denied
   </IfModule>
   <IfModule !mod_authz_core.c>
     order deny,allow
     deny from all
   </IfModule>
 </Directory>  </Directory>
   
 # Allow uploaded files to be served  # Allow uploaded files to be served
Line 1440  deny from all Line 1558  deny from all
 <Directory "/home/httpd/lonUsers">  <Directory "/home/httpd/lonUsers">
 Options Includes FollowSymLinks  Options Includes FollowSymLinks
 AllowOverride None  AllowOverride None
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
     
 # Allow construction space files to be served  # Allow construction space files to be served
Line 1449  allow from all Line 1572  allow from all
 <Directory "/home/*/public_html/" >  <Directory "/home/*/public_html/" >
 Options Includes FollowSymLinks  Options Includes FollowSymLinks
 AllowOverride  AllowOverride
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
   
 # Yes to symbolic links and server-side includes  # Yes to symbolic links and server-side includes
Line 1458  allow from all Line 1586  allow from all
 <Directory /home/httpd/html>  <Directory /home/httpd/html>
 Options Includes FollowSymLinks  Options Includes FollowSymLinks
 AllowOverride None  AllowOverride None
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
   
 # If it is in cgi-bin, then it can be executed as a CGI script.  # If it is in cgi-bin, then it can be executed as a CGI script.
Line 1467  allow from all Line 1600  allow from all
 <Directory /home/httpd/cgi-bin>  <Directory /home/httpd/cgi-bin>
 AllowOverride None  AllowOverride None
 Options ExecCGI FollowSymLinks  Options ExecCGI FollowSymLinks
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
   
 # Allow serving of files in prtspool  # Allow serving of files in prtspool
Line 1476  allow from all Line 1614  allow from all
 <Directory "/home/httpd/prtspool/">  <Directory "/home/httpd/prtspool/">
 Options Includes FollowSymLinks  Options Includes FollowSymLinks
 AllowOverride None  AllowOverride None
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
   
 # Allow serving of files in zipspool  # Allow serving of files in zipspool
Line 1485  allow from all Line 1628  allow from all
 <Directory "/home/httpd/zipspool/">  <Directory "/home/httpd/zipspool/">
 Options Includes FollowSymLinks  Options Includes FollowSymLinks
 AllowOverride None  AllowOverride None
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
   
 # Allow serving of files in captchaspool  # Allow serving of files in captchaspool
Line 1494  allow from all Line 1642  allow from all
 <Directory "/home/httpd/captchaspool/">  <Directory "/home/httpd/captchaspool/">
 Options Includes FollowSymLinks  Options Includes FollowSymLinks
 AllowOverride None  AllowOverride None
 order allow,deny  <IfModule mod_authz_core.c>
 allow from all    Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     order allow,deny
     allow from all
   </IfModule>
 </Directory>  </Directory>
   
   <DirectoryMatch "^/home/httpd/html/priv/.+/">
      DirectoryIndex disabled
   </DirectoryMatch>
   
   <DirectoryMatch "^/home/httpd/html/res/.+/">
      DirectoryIndex disabled
   </DirectoryMatch>
   
 # ============================================================= Access Handlers  # ============================================================= Access Handlers
   
 # ------------------------------------------------- Allow server-status reports  # ------------------------------------------------- Allow server-status reports
Line 1516  ErrorDocument     500 /adm/errorhandler Line 1677  ErrorDocument     500 /adm/errorhandler
 # ------------------- Allow access to local system documentation from localhost  # ------------------- Allow access to local system documentation from localhost
 Alias /doc /usr/doc  Alias /doc /usr/doc
 <Directory /usr/doc>  <Directory /usr/doc>
 order deny,allow  
 deny from all  
 allow from localhost  
 Options Indexes FollowSymLinks  Options Indexes FollowSymLinks
   <IfModule mod_authz_host.c>
     Require local
   </IfModule>
   <IfModule !mod_authz_host.c>
     order deny,allow
     deny from all
     allow from localhost
   </IfModule>
 </Directory>  </Directory>
   
 # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************  # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
Line 1532  PerlSetVar       lonTabDir    /home/http Line 1698  PerlSetVar       lonTabDir    /home/http
 PerlSetVar       lonUsersDir  /home/httpd/lonUsers  PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 PerlSetVar       lonIconsURL  /adm/lonIcons  PerlSetVar       lonIconsURL  /adm/lonIcons
 PerlSetVar       londPort     5663  PerlSetVar       londPort     5663
 PerlSetVar       lonSysEMail  korte@lite.msu.edu  PerlSetVar       lonSysEMail  techsupport@loncapa.org
 PerlSetVar       lonDaemons   /home/httpd/perl  PerlSetVar       lonDaemons   /home/httpd/perl
 PerlSetVar       lonLib       /home/httpd/lib  PerlSetVar       lonLib       /home/httpd/lib
 PerlSetVar       lonSockDir   /home/httpd/sockets  PerlSetVar       lonSockDir   /home/httpd/sockets
Line 1544  PerlSetVar       lonZipDir    /home/http Line 1710  PerlSetVar       lonZipDir    /home/http
 PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool  PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 PerlSetVar       lonCaptchaDb     /home/httpd/captchadb   PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 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, 
 # - regexp that it should match (done case-insensitively)  # - regexp that it should match (done case-insensitively)
 # - regexp that is should not match (done case-insensitively)  # - regexp that is should not match (done case-insensitively)
Line 1552  PerlSetVar       lonFontsDir     /home/h Line 1718  PerlSetVar       lonFontsDir     /home/h
 # - a number that describes the minimum version that has mathml support  # - a number that describes the minimum version that has mathml support
 # - a number that describes the minimum number version that has unicode support  # - a number that describes the minimum number version that has unicode support
   
 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:shouldnotmatch:chrome\/(\d+\.\d+):9999:1  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
   
 PerlSetVar       lonTextBrowsers windows\s+ce:lynx  PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 PerlSetVar       lonScansDir  /home/httpd/scantron  PerlSetVar       lonScansDir  /home/httpd/scantron

Removed from v.1.217  
changed lines
  Added in v.1.247


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