文章目录
1.directory index of “[url]” is forbidden
原因:目录索引未开启
在配置中添加如下:
location /somedir {
autoindex on;
}
2.unknown directive "锘? in nginx.conf:3
原因:conf文件被记事本编辑过,保存成了含BOM头的文件
使用其他编辑器将文件另存为UTF-8不含Bom头的格式
3.No mapping for Unicode character exists in the target multi-bytes code page
原因:路径里面包含有中文
将中文路径修改为英文