Lets say we have a configuration as below:
http {
limit_conn_zone $binary_remote_addr zone=conn_limit1:12m;
limit_conn_zone $server_name zone=conn_limit2:24m;
[...]
server {
[...]
location / {
limit_conn conn_limit1 5;
limit_conn conn_limit2 200;
}
} }
I have a connection limitation per IP
and Host
. My question is when user request for example: http://www.test.com/index.php
, inside of this we include many js
img
files which are logged inside of access_log as a single request!
Does Nginx
limit connections to 5 for that single request or including all those files that are requested? If there are 6 files inside of that index.php
then client receives 503
or not?