CI + NGINX URL重写规则
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; } }
posted on 2012-04-09 22:01 VirtualLife 阅读(556) 评论(0) 收藏 举报
浙公网安备 33010602011771号