# Nginx download resume is not working plzzz help

**URL:** <https://www.ruby-forum.com/t/nginx-download-resume-is-not-working-plzzz-help/212188>\
**Category:** NGINX\
**Created:** [September 25, 2011, 5:14am UTC](https://www.ruby-forum.com/t/nginx-download-resume-is-not-working-plzzz-help/212188 "2011-09-25T05:14:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 25, 2011, 5:14am UTC](https://www.ruby-forum.com/t/nginx-download-resume-is-not-working-plzzz-help/212188/1 "2011-09-25T05:14:27Z")

</div>

hello guys…  
hope you all are doing well

download resume for any file is not working

here is nginx configuration  
##########################################################  
user www www;

worker\_processes 1;

error\_log /home/wwwlogs/nginx\_error.log crit;

pid /usr/local/nginx/logs/nginx.pid;

#Specifies the value for maximum file descriptors that can be opened by  
this process.  
worker\_rlimit\_nofile 51200;

events  
{  
use epoll;  
worker\_connections 51200;  
}

http  
{  
include mime.types;  
default\_type application/octet-stream;

```
server_names_hash_bucket_size 32;
client_header_buffer_size 4k;
large_client_header_buffers 256 4k;
client_max_body_size 20m;

sendfile on;
tcp_nopush on;

keepalive_timeout 45;

tcp_nodelay on;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 8k;
fastcgi_buffers 256 8k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 16m;

gzip off;
gzip_min_length 1k;
gzip_buffers 16 8k;
gzip_http_version 1.0;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css

```

application/xml;  
gzip\_vary on;

```
#limit_zone crawler $binary_remote_addr 10m;

```

server  
{  
listen 80;  
server\_name [xyz.com](http://xyz.com);  
index index.html index.htm index.php;  
root /home/wwwroot/m/;  
access\_log off;  
location ~ .\*.(php|php5)?$  
{  
fastcgi\_pass unix:/tmp/php-cgi.sock;  
fastcgi\_index index.php;  
include fcgi.conf;  
}

```
location /status {
  stub_status on;
  access_log off;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  {
    expires 30d;
  }

location ~ .*\.(js|css)?$
  {
    expires 7d;
  }

```

error\_page 404 500 502 504 503 /error.htm;

rewrite ^/menu/all\_files/page(._).html$ /index.php?a=all&p=$1 last;  
rewrite ^/menu/all\_files/$ /index.php?a=all last;  
rewrite ^/file-extension/(._).html$ /index.php?a=ft&ft=$1 last;  
rewrite ^/file/(._)/(._)/warn.html$  
/index.php?a=fid&fid=$2&warn=adult&k=$1 last;

# log\_format access '$remote\_addr - $remote\_user [$time\_local]

“$request” ’

# '$status $body\_bytes\_sent “$http\_referer” ’

# ‘“$http\_user\_agent” $http\_x\_forwarded\_for’;

# access\_log /home/wwwlogs/access.log access;

}  
include vhost/\*.conf;  
}  
###############################################################

hey guys please tell me why download resume is not working and how can i  
solve this issue…

thank you

Posted at Nginx Forum:

> **[nginx download resume is not working plzzz help...](https://forum.nginx.org/read.php?2,215775,215775#msg-215775)**
>
> hello guys... hope you all are doing well download resume for any file is not working here is nginx configuration ########################################################## user www www; worker\_processes 1; error\_log

---

<div class="post-metadata">

**Author:** ![khizar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ee59a6/32.png) [@khizar](https://www.ruby-forum.com/u/khizar)\
**Post date:** [September 25, 2011, 11:50am UTC](https://www.ruby-forum.com/t/nginx-download-resume-is-not-working-plzzz-help/212188/2 "2011-09-25T11:50:48Z")

</div>

If you are having PHP read the file directly then Nginx is not  
responsible for the file sending and as such your PHP application needs  
to implementing range requests.

Ideally, you should be using x-accel-redirect to have Nginx handle the  
file sending once PHP is done.

Posted at Nginx Forum:

> **[Re: nginx download resume is not working plzzz help...](https://forum.nginx.org/read.php?2,215775,215789#msg-215789)**
>
> hello guys... hope you all are doing well download resume for any file is not working here is nginx configuration ########################################################## user www www; worker\_processes 1; error\_log
