dxren 发表于 2010-7-31 21:26:14

求助 我想绑定两个域名到一个网站 不是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同时能够访问的效果

licess 发表于 2010-7-31 21:44:05

回复 1# 的帖子

修改完需要重启一下才会生效。

dxren 发表于 2010-7-31 21:51:35

那也就是我这样设置理论上是会生效的?

另外问一下 access.lognginx_error.log
这两个日志好大是否可以直接删除掉呢?

dxren 发表于 2010-7-31 22:16:57

原帖由 licess 于 2010-7-31 21:44 发表 https://bbs.vpser.net/images/common/back.gif
修改完需要重启一下才会生效。

重启了还是不行啊

licess 发表于 2010-8-1 09:34:10

回复 1# 的帖子

多个域名直接是空格,不是分号。
日志文件不能删除,只能清空。
页: [1]
查看完整版本: 求助 我想绑定两个域名到一个网站 不是301转发那种