Nginx问题汇总
文章目錄
- 1.directory index of "[url]" is forbidden
- 2.unknown directive "锘? in nginx.conf:3
- 3.No mapping for Unicode character exists in the target multi-bytes code page
1.directory index of “[url]” is forbidden
原因:目錄索引未開(kāi)啟
在配置中添加如下:
location /somedir {autoindex on; }2.unknown directive "锘? in nginx.conf:3
原因:conf文件被記事本編輯過(guò),保存成了含BOM頭的文件
使用其他編輯器將文件另存為UTF-8不含Bom頭的格式
3.No mapping for Unicode character exists in the target multi-bytes code page
原因:路徑里面包含有中文
將中文路徑修改為英文
總結(jié)
- 上一篇: Tomcat中的字体请求跨域问题解决
- 下一篇: JavaScript中的基本数据类型与引