EC2 服务器故障排除
我有一个正在运行的实例指向弹性IP。我在 GoDaddy 上也有指向同一个弹性 IP 的 A 记录。我创建了一个密钥,通过 putty 安装了 php、httpd 等...,在 var/www/html 和子目录中授予了 ec2 用户 chown 权限,并在该文件夹中放置了一个简单的 index.html。
问题是,我仍然收到 404 - 所以该网站完全没有响应。我可以使用 WinSCP 很好地导航到该站点,并且目录都在那里。是否有一些我完全忽视的事情,这只是我的疏忽,还是我有更深层次的问题?
非常感谢!
编辑:
我做了一个简单的服务 httpd status 来检查 Apache 是否正在运行,果然是。
I have an instance running that points to an elastic IP. I also have the A record on GoDaddy pointing to that same elastic IP. I created a key, installed php, httpd, etc... through putty, gave ec2-user chown permissions in var/www/html and sub directories and plopped a simple index.html in that folder.
The problem is, I still get the 404 - so the site is completely unresponsive. I can nav into the site with WinSCP fine and the directories are all there. Is there something I am completely overlooking that is just an oversight on my part or do I have deeper issues?
Much thanks!
EDIT:
I did a simple service httpd status to check if Apache is running, and sure enough it is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您最近更新了 GoDaddy 上的 dns,则可能只是需要等待 dns 传播到正确的域名服务器。您是否检查过从正确的 IP 地址收到 404 错误?
If you recently updated the dns on GoDaddy it may just be that you have to wait for the dns to propagate to the right nameservers. Have you checked that you are getting a 404 from the right ip address?