xSendFile on Apache problem

maniek015

Member
YetiShare User
Jan 14, 2016
42
2
8
Hi,
I use this thread on knowledge base to setup up xSendFile on one of my file server -
https://support.mfscripts.com/public/kb_view/1/

I have Apache + Nginx server on Debian 8.9 Jessie. + VestaCP panel

I add this to apache2.conf :
<IfModule mod_xsendfile.c>
<Files *.php>
XSendFile On
SetEnv MOD_X_SENDFILE_ENABLED 1
</Files>
</IfModule>

Also i add this to .htaccess file on my fileserver

But if I add :
XSendFilePath /home/path/to/yetishare/install/public_html/

and restart the apache i have the error :
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.

So I remove the XSendFilePatch from apache config and restart is work but xSendFile not. Also I active on the admin page server xSendFile improvment.

If I try download files i have this error :
Not Found

The requested URL /index.php was not found on this server.

Anybody have a idea how can I configure correctly xSendFile on my server?
 

maniek015

Member
YetiShare User
Jan 14, 2016
42
2
8
Ok, this problem is solved because I add XSendFilePatch /home/path/to/yetishare/install/public_html/ ...
If I add XSendFilePath /home/path/to/yetishare/install/public_html/ is work properly :) typo...

But now i have another problem :
i have active on all fileserver xSendFile but still I see download on download track page : admin/download_current.php

and sometimes I have this error :
*235 (here also random number) upstream prematureluy closed , client : here_IP_of_user , server : here my host, and the request link.

I have this in error log in apache2 on my domains.