Welcome! Log In Create A New Profile

Advanced

upload_progress и 404 Not Found

August 31, 2011 07:40AM
Здравствуйте.

Возникла проблема с модулем upload_progress. При наведении браузера на URL http://myserver.eu/uploads/progress возвращается 404 Not Found, хотя "/uploads/progress" сконфигурен как report_uploads URI.

Будьте так любезны, наведите на какую-нибудь мысль по поводу решения этой проблемы?

nginx v1.0.5, upload_progress v0.8.2-0

nginx.conf:

http {
# upload progress
upload_progress uploads 1m;
upload_progress_content_type "application/json";
upload_progress_json_output;

[...]
}


# virtual host configuration

server {
listen 80;
server_name www.myserver.eu myserver.eu;
client_max_body_size 1000m;

access_log /var/log/nginx/myserver.access_log main;
error_log /var/log/nginx/myserver.error_log warn;

root /opt/www/myserver;

location / {
index index.php;
}

charset utf-8;

location /data {
deny all;
}

# данный URI, как я понимаю, как раз и должен выдавать информацию о прогрессе uploads в JSON формате
location = /uploads/progress {
report_uploads uploads;
}

# glue css/js files into a single file for faster loading
rewrite .*/(css|javascript)/[^,]+,.+ /glue.php last;

location ~ ^(?<script_filename>.+\.php)$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$script_filename;
if (!-f $document_root$script_filename) {
return 404;
}
fastcgi_pass phpfarm;
track_uploads uploads 30s;
}
}
Subject Author Posted

upload_progress и 404 Not Found

locojohn August 31, 2011 07:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready