VPS侦探论坛

标题: 军哥,求救 [打印本页]

作者: hanbal    时间: 2012-7-1 00:27
标题: 军哥,求救
我绑定了一个新目录: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_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

…………………………
作者: licess    时间: 2012-7-1 08:34
设置301就行了https://bbs.vpser.net/thread-7339-1-1.html
作者: hanbal    时间: 2012-7-8 21:34
军哥,按照这样的设置,怎么不行呢。我需要将二级域名 aaa.domain.com转发到 otherdomain.com/cgi?123

怎么搞?谢了
作者: hanbal    时间: 2012-7-14 01:36
军哥在吗?自己顶一下




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4