|
本帖最后由 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.205205.xyz/thread-112139-1-1.html
我vps装的lnmp,论坛装在根目录,用ip和域名都能访问,现在很多域名指向我网站。
我自己的网站只被百度收录2页,别人的收录了几千。
请问怎样能改过来呢,把别人的导到我的网站,或我应该怎样补救!
我是菜鸟,大家可以告诉我具体操作方法吗?谢谢了.....
|
|