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

This commit is contained in:
Daniel Berteaud 2013-10-03 12:05:40 +02:00
parent 66dcd25331
commit ad60e37425
3 changed files with 25 additions and 0 deletions

View File

@ -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";
}
}

View File

@ -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

View File

@ -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',