宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
查看: 1650|回复: 7

我找到后这样搞了,基本上搞定了,但还有一些问题!

[复制链接]
发表于 2012-3-17 14:03:25 | 显示全部楼层 |阅读模式
本帖最后由 qazfw 于 2012-3-17 14:13 编辑

谢谢大家帮助
原贴
a1.jpg (102.2 KB, 下载次数: 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://www.fastfib.com/thread-112139-1-1.html

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

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

发表于 2012-3-17 14:03:50 | 显示全部楼层
不懂
发表于 2012-3-17 14:07:02 | 显示全部楼层
ngix的规则没研究。一直用.htaccess
发表于 2012-3-17 14:08:46 | 显示全部楼层
帮你顶顶 看不懂!
发表于 2012-3-17 14:09:01 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2012-3-17 14:11:58 | 显示全部楼层
不会吧,原贴我发上来吧!
发表于 2012-3-17 14:18:44 | 显示全部楼层
301呗
发表于 2012-3-17 14:20:12 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|FastFib VPS论坛

GMT+8, 2024-9-20 13:33 , Processed in 0.090808 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表