hanbal 发表于 2012-7-1 00:27:20

军哥,求救

我绑定了一个新目录:aaa.mydomain.com到aaa目录下,现在我想通过aaa.mydomain.com访问otherdomain.com,也就是域名转发,通过设置aaa.mydomain.com.conf,设置不好,域名dns上也无法实现域名转发,htaccess也实现不了,怎么办呢?是不是
aaa.mydomain.com.conf文件修改的不对啊?

server
      {
                listen       80;
                rewrite ^(.*) http://www.xxx.org permanent;

                location ~ .*\.(php|php5)?$
                        {
                              fastcgi_passunix:/tmp/php-cgi.sock;
                              fastcgi_index index.php;
                              include fcgi.conf;
                        }

…………………………

licess 发表于 2012-7-1 08:34:09

设置301就行了https://bbs.vpser.net/thread-7339-1-1.html

hanbal 发表于 2012-7-8 21:34:59

军哥,按照这样的设置,怎么不行呢。我需要将二级域名 aaa.domain.com转发到 otherdomain.com/cgi?123

怎么搞?谢了

hanbal 发表于 2012-7-14 01:36:54

军哥在吗?自己顶一下
页: [1]
查看完整版本: 军哥,求救