server { listen 8020; root /u/game/html/BCenter/; index index.php index.html index.htm; location / { if (-f $request_filename) { expires max; break; } if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; } } location = /50x.html { root /var/www/nginx-default; } location /index.php { fastcgi_pass 127.0.0.1:8888; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /u/game/html/BCenter/index.php; include fastcgi_params; } }
转载于:https://www.cnblogs.com/VirtualLife/archive/2012/04/09/2439603.html