[分享]destoon在linux的lnmp下公司的二级域名,设置成功!
[分享]在linux的lnmp下公司的二级域名,设置成功!献给喜欢使用linux的朋友!
server
{
listen 80;
server_name penjing8.com www.penjing8.com;
index index.php index.html index.htm default.html default.htm default.php;
root/home/wwwroot/penjing8.com;
error_page 404 = /404.php;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
server
{
listen 80;
server_name *.penjing8.com;
index index.html index.php;
root/home/wwwroot/penjing8.com/company;
error_page 404 = /404.php;
location / {
rewrite ^(.*)/(+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3 last;
}
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
}
摸了半天,终于成功了!
成功了!
http://liucengming.penjing8.com/
http://hjx8855.penjing8.com/
[ 本帖最后由 noots516 于 2012-8-6 22:55 编辑 ]
我用这个方法 ,企业二级域名跳转到主站首页,求高手帮忙处理,谢谢
qeoso 发表于 2014-12-15 13:20
我用这个方法 ,企业二级域名跳转到主站首页,求高手帮忙处理,谢谢
看看绑定目录是否正确
heaven 发表于 2014-12-15 16:48
看看绑定目录是否正确
这个方法进入企业二级域名跳转到主站首页
qeoso 发表于 2014-12-15 13:20
我用这个方法 ,企业二级域名跳转到主站首页,求高手帮忙处理,谢谢
看看company目录下是不是有index.html,删掉看看
liupt 发表于 2014-12-16 09:09
看看company目录下是不是有index.html,删掉看看
company目录下没有index.html
http://bbs.destoon.com/static/image/smiley/default/sad.gif
qeoso 发表于 2014-12-16 09:50
company目录下没有index.html
那你看看你服务器上二级域名站点目录绑定的是不是正确,是不是绑定到网站根目录下了,这个要绑到company目录下的
qeoso 发表于 2014-12-15 19:02
这个方法进入企业二级域名跳转到主站首页
还要看看你后台设置对了么
页:
[1]