Nginx 中文路径404

Nginx 中文路径404

工具

SecureFXPortable 文件上传 SecureCRTPortable shell 命令 centos 操作系统

造成原因

使用 SecureFXPortable 上传的中文文件夹在SecureCRTPortable中查看是乱码,导致nginx 无法匹配到相应的目录造成404。

处理方式

  1. 确保操作系统可以输入中文,并在 SecureCRTPortable中可以正确显示。
  2. 将 SecureFXPortable 和 SecureCRTPortable中的编码格式全部设置为utf-8
  3. 在 SecureCRTPortable 安装的文件夹中进入 Data\Settings\Config\Sessions 找到 相对应的 xx.xx.xx.xx.ini 文件,在文件中找到D:"Filenames Always Use UTF8" 将他的值修改为00000001
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章