cfan365 发表于 2012-4-27 20:18:07

lnmpa中nginx的Index设置无效

index index.html index.htm index.php default.html default.htm default.php;
这个没用了。。。

cfan365 发表于 2012-4-27 20:21:04

location / {
rewrite /diary/(+)/$ /diary/$1/index.html last;
rewrite /related/(+)/$ /related/$1/index.html last;
try_files $uri @apache;
}

location @apache {
internal;
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}
这样才过 郁闷啊
页: [1]
查看完整版本: lnmpa中nginx的Index设置无效