I have a set of rewrite rules as

rewrite ^/(.*) /script.php?file=$1 last;

location ~ \.php$ {
php proxy
}

but I want to make a few exceptions as

location = file1|file2|file3 {
static delivery
}

but rewrite will change any static file to php file before the latter
location.

I cannot use rewrite inside the location, as it should generate php script
before location (and I have other locations for subdirectories too).

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

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to