cndcos 发表于 2016-4-13 15:59:56

IP可以访问,域名访问显示403错误

RT,请哪位朋友指导下,网上搜索许多解决办法但是还是无法搞定这个问题,情况大致如下:
Linode的VPS,装的CentOS7系统,安装的军哥lnmp1.2版本,安装显示成功,IE端输入IP显示“恭喜您,LNMP一键安装包安装成功”,
输入域名,返回Nginx 403错误
Namesilo的域名,Putty下直接 ping 域名指向的是VPS的IP地址,应该说明域名是已经解析到空间的,空间绑定域名的操作是按照军哥
”添加虚拟机“的教程来的,按理说空间也绑定了域名
现在403这个错误我百度了很多方案,但是自己还是解决不了,麻烦哪位能给个建议? 谢谢

cyr11 发表于 2016-4-13 16:42:41

你放一个 index.html看看可以访问到不

cndcos 发表于 2016-4-13 21:56:39

回复 2# 的帖子

放在哪个目录下?网站根目录?还是写进哪个配置文件里?

licess 发表于 2016-4-14 09:18:39

回复 3# 的帖子

网站目录不放index文件的话肯定403

cndcos 发表于 2016-4-15 17:26:00

原帖由 licess 于 2016-4-14 09:18 发表 https://bbs.vpser.net/images/common/back.gif
网站目录不放index文件的话肯定403
军哥,全称是按照你的lnmp指导一路安装,中间没有报错过程,正常情况是不是不需要做什么额外设定就可以访问网站域名了?
网站目录下我也看到了index.html文件,不知道问题出在哪里
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAksAAAC6CAIAAAAxjp7AAAAZlElEQVR4nO2dy7vcxJmH6+/pP2OYkOE04WLsBOPjDIy5CTOZzHAJsNdsWbBhq00W3vA8bLLo3SR5GDKQEMDmGF+wuQTfYoaZEA4QnpmFutVVqu8rVanVrW7pfR8vjqul+r6ulvRTlVT1M+eufXP0seeNxSQrimxiNsskK2Yl+XTDoceG+PtO8yKbTPMi6yUll2k+a38A9nL0AsCWIircbDabrXCVgW1lmg/0p61ukGZbIdIAsB34CgcAADAEUDgAABgmKBwAAAwTFA4AAIYJCgcAAMNkWxRu/pYf78L1xCQr8mk5aaCv+L2E3vXZBbueP8B62YrZApOsWISb5ssZcdUkOTEVcdpUJZTCvDrv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7ldiXi9jBa3r9y68jDTzdvhz+cFRp/uLWi+8wlDzziDxcoT0NbSdn2fsuNeX0hZvbqXJkxr1kit2fJ3p4xz0R4C9hRqhLbi87/9BUUDox55+K1e/efNMb4C8DiDyeDe86aUX3mYvzkahXhD7duhTNSX2oi9bGqblZt98jovoZp+Yjbwzh5++DTux98tHk7/OHahUbhVqHuwhPjJ7cEf7hweRphRTGL8jNWH05beRKFg43xX+eu3nXskebt8IdrFVrp+w7dH64r9OdwEb8C/nBN5QH8J2SVZkzcp1z2aOSeMa8akxtjgm8zBhROezKHwkE73nzvox8+8NPgJvjDKQ2BP9w6qfvMudlEvl6EP1y4XMVXGnHgMXNfM/Gt4/yP/EqmwbjiaGfAfy4wOgoj5I13L915/37fWQBsDvzhAMbCG3+8eOd9J/rOAmBD4A8HMCL+892L9OEAAGCAvPne5TuPnOw7CwAAgK753dkr//DAP/adBYyP/1P+AQB0xVsHH+/FzBYA6BYUDgDWzR8+/CxqxjdAt6BwALBu/njp+j0nnug7C2fCUt+pwAqUs7Jj5k2jcACwbt67cuv+n562SxYzTTc4Z2g5c9xZc6Ga8yqmIq74F5qg7H1Wm1Ib84Wb/cDa+5l5+6VYi7UJsiDczoGYwvaTrMinUStDoXAAsG7OffLfRx/5mV2S4PeRjnjpcyJ6t/9J/iO2D5a9l7h6rZ3MKj5etbiaL1diq8atZ9h6IV25Jnlx7fjty++PwgHANvD/9V8Ma3JsLGQAAAAASUVORK5CYII=

licess 发表于 2016-4-15 19:55:16

回复 5# 的帖子

不需要另外其他的设置

403可能还会与目录权限有关,发一下目录权限看看及配置文件
页: [1]
查看完整版本: IP可以访问,域名访问显示403错误