我刚刚设置了一个新域并上传了一些简单的静态 html 文件和资产。图像不显示,当我尝试直接在浏览器中拉出一个时,我得到一个页面
404 File Not Found - nginx
这很奇怪,因为虽然我知道 media Temple 使用 nginx 来运行虚拟机,但网站总是使用 apache...
无论如何,导致这种情况的是我:
- 创建了一个新的网络空间
- 在该网络空间内创建了一个新域
- 上传了一张新图片(logo.jpg)
- 发现 logo.jpg 不会加载并导致上面描述的 404
创建新域后,我收到如下所示的自动消息(已删除特定信息):
---------- Forwarded message ----------
From: [user] [email]
Date: Thu, Jan 30, 2014 at 12:40 PM
Subject: Unable to configure a web server on the host [domain]
To: [me]
Unable to generate the web server configuration file on the host [domain] because of the following errors:
nginx: [emerg] listen() to [ip address]:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed
Please resolve the errors in web server configuration templates and generate the file again.
这里有什么问题?这是一个全新的网站 - 它不应该给我这种悲伤..