A
A
Alexey Tsarapkin2015-02-12 11:12:08
Nginx
Alexey Tsarapkin, 2015-02-12 11:12:08

How to bypass 499 nginx error?

Hello colleagues!
I am writing the functionality of Internet acquiring for a bank. At a certain moment (after the transaction is completed), the bank sends payment data by POST and, without waiting for a response, closes the connection. As a result, I cannot catch this POST, and the line appears in the logs:

194.190.140.5 - - [12/Feb/2015:11:03:06 +0300] "POST /invoice/getresult HTTP/1.1" 499 0 "-" "HTTP_LIB/1.0" "-"

On a CentOS server, Nginx as a web server, PHP-FPM.
There is root ssh access to the server and the ability to do everything as you like.
How to configure nginx to accept POST from a bank?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Tsarapkin, 2015-02-13
@Dreamka

One familiar system administrator helped solve the problem:
Just what the doctor ordered!

S
Stanislav Fateev, 2015-02-12
@svfat

Try the directive proxy_ignore_client_abort onin host settings.
nginx.org/ru/docs/http/ngx_http_proxy_module.html#...

Синтаксис:	proxy_ignore_client_abort on | off;
Умолчание:	
proxy_ignore_client_abort off;
Контекст:	http, server, location
Определяет, закрывать ли соединение с проксированным сервером в случае, если клиент закрыл соединение, не дождавшись ответа.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question