nginx的配置
if (!-e $request_filename){
set $rule_0 1$rule_0;
}
if ($request_uri !~* "\.(css|js|jpg|jpeg|gif|png|swf|flv)$"){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite (.*) /index.php/$1 last;
}
location ~.*\.(gif|jpg|jpeg|png|bmp|swf|flv)$ {
expires 1d;
}
location ~.*\.(js|css)?$ {
expires 1d;
}
location ~ \.php {
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}