limit_conn/limit_req specific location + php

GerMalaz nginx-forum at
Fri Nov 20 00:17:36 MSK 2009


I have to limit conns in an specific location of the website. Aditionally, in this location are php files.

There is a

location ~ \.php$ 

section, but that can't be limited globally.

There is a 

location /specific/

section, but that does not affect php files.

And if 

location ^~ /specific/

section, then can't access the php files.

What is the best way to express this (without having duplicated parts of configuration)


Posted at Nginx Forum:,24276,24276#msg-24276

More information about the nginx mailing list