求助 我想绑定两个域名到一个网站 不是301转发那种
我现在的设置是这样的server
{
listen 80;
server_name www.dxren.cn; www.dxren.org;
index index.html index.htm index.php default.html default.htm default.php;
root/home/www.dxren.cn;
include discuz.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
但是并没有实现 www.dxren.cn和www.dxren.org同时能够访问的效果
回复 1# 的帖子
修改完需要重启一下才会生效。 那也就是我这样设置理论上是会生效的?另外问一下 access.lognginx_error.log
这两个日志好大是否可以直接删除掉呢? 原帖由 licess 于 2010-7-31 21:44 发表 https://bbs.vpser.net/images/common/back.gif
修改完需要重启一下才会生效。
重启了还是不行啊
回复 1# 的帖子
多个域名直接是空格,不是分号。日志文件不能删除,只能清空。
页:
[1]