Limit_conn/limit_req specific location + php

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: