急求助,带www的域名访问不了,不带的可以访问?
我用的是阿里云,装的是lnmp,我绑定了好几个域名,其他三个都是访问的,jsfc.cowww.licaiya.net licaiya.net这三个是可以访问的,不知道为什么?就是www.jsfc.co这个不可以,
而且域名解析四个都是同一个ip的。
下面是配置文件/usr/local/nginx/conf/vhost/www.jsfc.co.conf
server
{
listen 80;
server_name www.jsfc.co jsfc.co www.licaiya.net licaiya.net;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/jsfc;
我看了这篇文章,但是没有看明白https://bbs.vpser.net/thread-8631-1-5.html
[ 本帖最后由 fzx126 于 2012-10-23 21:26 编辑 ] /usr/local/nginx/sbin/nginx -t 测试看看 # /usr/local/nginx/sbin/nginx -t
nginx: conflicting server name "www.jsfc.co" on 0.0.0.0:80, ignored
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful 军哥,是不是我的文件有权限问题啊?我今天用ftp上传的 对下面文件修改,
/usr/local/nginx/conf/vhost/www.jsfc.co.conf server_name jsfc.co;
/usr/local/nginx/conf/nginx.conf server_name www.jsfc.co; "www.jsfc.co" 这个域名添加过2次,检查配置将多添加的这个去掉就行了
回复 6# 的帖子
是的,参照5楼和你的意见解决了。
页:
[1]