关于nginx php framework rewrite 的一些纪录
nginx configs
before
location ~ .*\.php?$
{
try_files $uri =404;
include fcgi.conf;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?$1 last;
}
after
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ .*\.php?$ {
try_files $uri =404;
include fcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
fastcgi_index index.php;
sources
[lamp notes] : http://huoding.com/2013/10/23/290