Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
upload progress и 404 Not Found
- To: nginx-ru@xxxxxxxxx
- Subject: upload progress и 404 Not Found
- From: "locojohn" <nginx-forum@xxxxxxxx>
- Date: Wed, 31 Aug 2011 07:40:38 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=BZIa7OMSJJh0NNo+qAvGfKahhaW19RwqTk82QvERJZ4=; b=IxjtojNwGmvyjV4x3TXtq00EugbtvQgo7tSw17ZCcwj36Hm97zNmuAeu/APcVAkqhwiYQQsroWRLFg2q1KEMJXrOoeS/V03uUFt0xNORnAV6LK+Xw7AOW8A0n3+XTi8I;
Здравствуйте.
Возникла проблема с модулем 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;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,214556,214556#msg-214556
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|