Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question