diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule98XSendFile b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule98XSendFile new file mode 100644 index 0000000..bab5590 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule98XSendFile @@ -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"; +} +} diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer index 4b68b3c..040b67f 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer @@ -28,6 +28,12 @@ Alias /ajxppub /var/lib/ajaxplorer/public deny from all + + XSendFile on + XSendFilePath /home/e-smith/files/shares + XSendFilePath /var/lib/ajaxplorer/public + XSendFilePath /home/e-smith/files/users + EOF @@ -51,6 +57,12 @@ $alias Deny from all Allow from $allow $auth + + XSendFile on + XSendFilePath /home/e-smith/files/shares + XSendFilePath /var/lib/ajaxplorer/public + XSendFilePath /home/e-smith/files/users + EOF diff --git a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All index cf54a04..e808a0d 100644 --- a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All +++ b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All @@ -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',