How to match for location in Nginx:
contains /render/framed/
ends with .php
I tried location ~ /render/framed/ { just for contains "/render/framed/" and it works. But couldn't find how to specify, must end with .php
Tried: location ~ /render/framed/+\.php$ {
Is it possible?
/render/framed/.*\.phpinstead of/render/framed/+\.php$location ~ /render/framed/.*\.php {location ~ /render/framed/.*\.php$ {should work (mind the$anchor). Probably, you may need to use double quotes,location ~ "/render/framed/.*\.php$" {, not sure though. Also, try replacing~with~*for case insensitive matching.error_page 404 = /url_rewriting.php;andlocationdoes not work for 404 response.