location ^~ YNH_WWW_PATH { alias YNH_WWW_ALIAS; root /YNH_WWW_APP/; index index.html yellow.php; location /cache { rewrite ^(.*)$ /error break; } location /content { rewrite ^(.*)$ /error break; } location /system { rewrite ^(.*)$ /error break; } location / { if (!-e $request_filename) { rewrite ^/(.*)$ /yellow.php last; break; } } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass 127.0.0.1:9000; fastcgi_index yellow.php; include fastcgi_params; }