【发布时间】:2015-04-02 16:58:03
【问题描述】:
我刚刚建立了一个 nginx 服务器。我可以访问我的网页(“正在建设中”页面),但是虽然一张图片是服务器正确的服务器(名为“logo.png”),但同一目录中的另一张图片(我在 nginx 的根目录下拥有一切)未提供并引发“403 - 禁止”错误)。下面我将向您展示我的 nginx.conf 文件的“http”部分。
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name ***********.com;
root html;
location / {
index index.html index.htm;
}
}
}
你对我如何解决这个问题有什么建议吗?
【问题讨论】:
标签: nginx