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:
parent
66dcd25331
commit
ad60e37425
|
@ -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…
Reference in New Issue
Block a user