Welcome! Log In Create A New Profile

Advanced

Nginx set proxy_send_timeout only if url has specific param in it

Posted by sajid 
Nginx set proxy_send_timeout only if url has specific param in it
March 07, 2014 10:21AM
Hello!
I am new with nginx and learning it for now :), I need some help with set proxy_send_timeout, I need to set this only if url has 'stime' in proxy here is what I am doing:

if ($arg_stime != ""){
proxy_send_timeout 15;
proxy_read_timeout 15;
}
but nginx does not start and gives following error:

4901#0: "proxy_send_timeout" directive is not allowed here in default.conf

any suggestions, Thank you

Best regards

Sajid
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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