limit_conn/limit_req specific location + php

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


Hello!

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)

Thanks,
        Gerardo

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,24276,24276#msg-24276






More information about the nginx mailing list