location / { if (!-e $request_filename){ rewrite ^/(.*)$ /fw/index.php?path=$1 last; } } location ~* (\.enc.cfg)$ { return 404; }