location ~* ^/(view|vendor|upload|app|static)/.*\.(php|php5|htm|html)$
{
rewrite ^/(.*)$ /waf.php?wafhtml=1 last;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}