location /{ if(!-e$request_filename){ rewrite ^/(.*)$ /index.php?$1 last; } } location/项目名{ if(!-e$request_filename){ rewrite ^/(.*)$ /项目名/index.php?$1 last; } } 配置上面的内容只能访问默认的Welcome控制器,新建的就404,求助!!!
http://www.linuxidc.com/Linux/2014-01/95548.htm