VPS侦探论坛

 找回密码
 注册
查看: 5067|回复: 3

LNMP怎么没办法绑定.tv域名啊?

[复制链接]
发表于 2012-6-17 23:18:27 | 显示全部楼层 |阅读模式

我把两个域名http://popkart.xidaren.comhttp://news.popkart.tv绑定到同一个目录,
第一个域名可以访问,但是第二个却怎么都无法访问。

总是错误“The connection to the server was reset while the page was loading.”
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-6-18 08:59:40 | 显示全部楼层


一样的操作。

你得先看  域名解析是否生效。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-6-18 09:21:13 | 显示全部楼层

不限制任何域名
可能你的配置有错误 ,/usr/local/nginx/sbin/nginx -t 测试看看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-6-19 22:27:31 | 显示全部楼层



server{
listen       80;
server_name www.url1.com www.url2.com;

两个域名中间注意空格.保存后重新加载nginx
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 05:31 , Processed in 0.025695 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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