Enable xsendfile to reduce CPU load when downloading big file. Also enable posix to get permissions, and probe real size

tags/0.1.9
Daniel Berteaud 11 years ago
parent 66dcd25331
commit ad60e37425
  1. 6
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule98XSendFile
  2. 12
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer
  3. 7
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All

@ -0,0 +1,6 @@
{
if ( -e '/usr/lib64/httpd/modules/mod_xsendfile.so' ||
-e '/usr/lib/httpd/modules/mod_xsendfile.so'){
$OUT .= "LoadModule xsendfile_module modules/mod_xsendfile.so\n";
}
}

@ -28,6 +28,12 @@ Alias /ajxppub /var/lib/ajaxplorer/public
<Files ".ajxp_*">
deny from all
</Files>
<IfModule mod_xsendfile.c>
XSendFile on
XSendFilePath /home/e-smith/files/shares
XSendFilePath /var/lib/ajaxplorer/public
XSendFilePath /home/e-smith/files/users
</IfModule>
</Directory>
EOF
@ -51,6 +57,12 @@ $alias
Deny from all
Allow from $allow
$auth
<IfModule mod_xsendfile.c>
XSendFile on
XSendFilePath /home/e-smith/files/shares
XSendFilePath /var/lib/ajaxplorer/public
XSendFilePath /home/e-smith/files/users
</IfModule>
</Directory>
EOF

@ -27,6 +27,13 @@ $data->{'core.log'} = {
}
};
$data->{'access.fs'} = {
'HIDE_EXTENSIONS' => 'ser',
'PROBE_REAL_SIZE' => '__true__',
'USE_POSIX' => '__true__',
'USE_XSENDFILE' => '__true__',
};
$data->{'core.notifications'} = {
'UNIQUE_FEED_INSTANCE' => {
'instance_name' => 'feed.sql',

Loading…
Cancel
Save