全球主机交流论坛

标题: 我找到后这样搞了,基本上搞定了,但还有一些问题! [打印本页]

作者: qazfw    时间: 2012-3-17 14:03
标题: 我找到后这样搞了,基本上搞定了,但还有一些问题!
本帖最后由 qazfw 于 2012-3-17 14:13 编辑

谢谢大家帮助
原贴
(, 下载次数: 0)

解决方法:我在server前加了网上搜到的以下这段,别人的域名或用ip打开显示404了。但我想让这个页面指向我的网站,怎么操作呢?改哪里404页面呢,谢谢!


server
      {
            listen          80;
            server_name     www.null.com;
            index index.php index.html;
            root /dev/null;
}

server
        {
                listen       80;
                server_name uw.com uw.com;
                index index.html index.htm index.php;
                root  /home/wwwroot;

                error_page 404 = /404.html;
                include discuzx.conf;
                location ~ .*\.(php|php5)?$
                        {
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

                location /status {
                        stub_status on;
                        access_log   off;
                }

                location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
                        {
                                expires      30d;
                        }

                location ~ .*\.(js|css)?$
                        {
                                expires      12h;
                        }

                log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
             '$status $body_bytes_sent "$http_referer" '
             '"$http_user_agent" $http_x_forwarded_for';
                access_log  /home/wwwlogs/access.log  access;
        }
include vhost/*.conf;
}


原贴:
原贴地址:http://loc.193.gs/thread-112139-1-1.html

我vps装的lnmp,论坛装在根目录,用ip和域名都能访问,现在很多域名指向我网站。
我自己的网站只被百度收录2页,别人的收录了几千。
请问怎样能改过来呢,把别人的导到我的网站,或我应该怎样补救!

我是菜鸟,大家可以告诉我具体操作方法吗?谢谢了.....


作者: cnweb    时间: 2012-3-17 14:03
不懂
作者: shineme    时间: 2012-3-17 14:07
ngix的规则没研究。一直用.htaccess
作者: heibudong    时间: 2012-3-17 14:08
帮你顶顶 看不懂!
作者: 单手摘月    时间: 2012-3-17 14:09
提示: 作者被禁止或删除 内容自动屏蔽
作者: qazfw    时间: 2012-3-17 14:11
不会吧,原贴我发上来吧!
作者: 藐视天地    时间: 2012-3-17 14:18
301呗
作者: gamecreating    时间: 2012-3-17 14:20
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://loc.193.gs/) Powered by Discuz! X3.4