lnmp0.5重新安装出现问题
今天重新安装了lnmp0.5,没有卸载(不懂),直接按照http://lnmp.org/install.html安装的,ubuntu server 10.04,之后Nginx总是无法启动:
root@197175:~# /usr/local/nginx/sbin/nginx -t
: duplicate location "/" in /usr/local/nginx/conf/wordpress.conf:1
configuration file /usr/local/nginx/conf/nginx.conf test failed
提示是/usr/local/nginx/conf/wordpress.conf这个文件有问题,我没有动过这个文件,麻烦同学们提供个正常的wordpress.conf,小弟感激不尽,实在没办法了:)
下面是我的wordpress.conf文件:
location / {
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
[ 本帖最后由 haggy 于 2010-12-12 18:33 编辑 ] 或者告诉我怎么重新安装lnmp,不知道怎么卸载……
回复 2# 的帖子
检查一下是不是重复引用了wordpress.conf
页:
[1]