Welcome! Log In Create A New Profile

Advanced

post_action... не всегда отправляется

Posted by Flyguy 
post_action... не всегда отправляется
June 12, 2012 04:02AM
Что имеем:
root@fs01:~# nginx -v
nginx version: nginx/1.2.0
Конфиг такой:
location ~ ^/dl/(?<server_id>\d+)/(?<file_id>\d+)/(?<user_id>\d+)/(?<sign>[\w-_]+)(?<file_path>/.+)/(?<file_name>[^/]+)$ {
secure_link $sign;
secure_link_md5 $secure_key$server_id$user_id$file_id$file_path/$file_name;

if ($secure_link = "") { return 403; }
if ($secure_link = "0") { return 410; }
rewrite (.*) /protected/download.php?user_id=$user_id&file_id=$file_id&path=$file_path&file_name=$file_name&server_id=$server_id&sign=$sign;
}
location /files {
internal;
post_action @download_complete;
}

location @download_complete {
proxy_pass_request_body off;
proxy_pass_request_headers off;
proxy_pass http://localhost/download_complete.php?sent=$body_bytes_sent&user_id=$user_id&file_id=$file_id;
}
После попадания в location dl, скрипт делает X-Accell-Redirect в location /files
Всё работает отлично, за исключением одного: в некоторой ситуации post_action не срабатывает...
В логах - ни чего... Подскажите, пожалуйста, что это может быть либо как эту ситуацию отдебажить...
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 245
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