E
E
Elizabeth Lawrence2019-11-08 01:12:02
Nginx
Elizabeth Lawrence, 2019-11-08 01:12:02

How to increase server response timeout for a specific link in NGINX?

Good day. I'm not good friends with regular expressions, it doesn't work out to compose a location so that it works, I tried everything. Tell me, please, is there a link to a yml feed of this kind site.ru/index.php?route=extension/feed/ocext_feed_generator_yamarket&token=3567355 , and only for such links I need to specify fastcgi_read_timeout 150;
I tried, for example, like this - location does not work
~ * ocext_feed_generator_yamarket {
fastcgi_read_timeout 150;
}
How correctly to issue?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-11-08
@ky0

Everything after the question mark is not a url, but parameters, locations do not apply to them. You can make a condition by parsing the parameters and setting a regular expression on them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question