Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm using nginx-1.4.2 with nginx-upload-progress and I've followed the documentation. However I can't seem to get progress to show . Module enabled , added "upload_progress uploads 1m;" in nginx.conf and added the D6 location and rewrites as instructed. Below it my vhost (showing "mysite" instead of domain for obvious reasons).
Am I missing something here?
server {
server_name www."mysite".com;
# rewrite ^/(.*) http://stage."mysite".com;
root /srv/www/"mysite".com/public_html; ## <-- Your only path reference.
access_log /srv/www/"mysite".com/logs/access.log;
error_log /srv/www/"mysite".com/logs/error.log;
# redirect if not using www
#rewrite ^(.+)$ http://www.$host$1 permanent;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location = /backup {
deny all;
}
location ~* \.(txt|log)$ {
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
location / {
# This is cool because no php is touched for static content
}
location ^~ /backup_migrate/ {
internal;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_cache microcache;
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;
fastcgi_cache_key $cache_uid@$host$request_uri;
fastcgi_cache_valid 200 301 15s;
fastcgi_cache_valid 302 1m;
fastcgi_cache_valid 404 1s;
fastcgi_cache_min_uses 1;
fastcgi_cache_use_stale error timeout invalid_header updating http_500;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_pass_header Set-Cookie;
fastcgi_pass_header Cookie;
expires epoch;
fastcgi_cache_lock on;
}
## Drupal 6 NGINX Upload module config. DISABLED BELOW
location ~ (.*)/x-progress-id:(\w*) {
rewrite ^(.*)/x-progress-id:(\w*) $1?X-Progress-ID=$2;
}
## Now the above rewrite must be matched by a location that
## activates it and references the above defined upload
## tracking zone.
location ^~ /progress {
## Comment out the line below if you're using a version
## of the Nginx Upload Progress module less than 0.9.0.
# upload_progress_java_output; # this for version 0.9.0 of the module
report_uploads uploads;
track_uploads uploads 600s;
}
location ~ ^/sites/.*/files/imagecache/ {
try_files $uri @rewrite;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}