Help cifs mount under document root does not work for nginx

Hi all
I am a newer for nginx.

When is want to set the nginx webroot to a cifs mount disk , a error
report :
sendfile() failed (75: Value too large for defined data type) while
sending response to client

My env:

nginx version: nginx/0.7.62
built by gcc 4.1.2 20070626 (Red Hat 4.1.2-14)
configure arguments: --prefix=/usr/local/nginx0.7.62/ --without-pcre
–without-http_rewrite_module

Anyone help me ?
Thank you.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,12905,12905#msg-12905

On Sun, Oct 11, 2009 at 05:13:56AM -0400, pninoh wrote:

configure arguments: --prefix=/usr/local/nginx0.7.62/ --without-pcre --without-http_rewrite_module
Linux may return such error for sendfile() on CIFS.
You have to disable sendfile inside this server or location:

server {

sendfile off;

Yes,good ide.
It works now.

thanks a lot.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,12905,13096#msg-13096

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs