问题描述
以下是location
的{{1}}块的一些内容
/etc/Nginx/sites-available/example.com
那么如何阻止http://example.com/some-directory-without-index-html-file/出现403错误?
location / {
root /var/www/example.com/html;
index index.html;
autoindex on;
autoindex_exact_size off;
}
的内容包括:
/var/log/Nginx/Nginx.vhost.error.log
2020/08/22 22:41:45 [error] 3821#3821: *30539 directory index of "/var/www/example.com/html/my-directory/" is forbidden,client: 73.204.11.250,server: example.com,request: "GET /my-directory/ HTTP/1.1",host: "example.com"
Nginx -T
第18行是下面的“包含”语句...
2020/08/23 23:04:08 [emerg] 89824#89824: open() "/etc/Nginx/mime.types" Failed (2: No such file or directory) in /etc/Nginx/Nginx.conf:18
Nginx: configuration file /etc/Nginx/Nginx.conf test Failed
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)