O
O
OneOlOf2021-02-13 15:22:58
Nginx
OneOlOf, 2021-02-13 15:22:58

Nginx, how to correctly set a limit on a virtual host?

Good afternoon!

Is it possible to set a restriction through the virtual host configuration, for example, on the execution of a php script, on the size of a post request, etc.

I know that this can be set through the php configuration, but it will affect all virtual hosts ... How to do it right, tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-02-13
@OneOlOf

Affects the server, site or location
client_max_body_size 100M;
Runtime.
fastcgi_read_timeout 300;
nginx.org/ru/docs/http/ngx_http_fastcgi_module.html#
https://www.nginx.com/resources/wiki/start/topics/... And here it is shown how you can set up an instance for a specific host. You can slip both the binary and the config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question