nginx 文件目录浏览 中文名 404 报错

c347840227 c347840227 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
配置文件如下
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
charset gbk,utf-8,;
autoindex on;
location / {
root html;
index index.html index.htm;
}
location /d/ {
alias D:/logs/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

}
英文路径没有问题,但是一访问中文路径,就会出现这样:


error.log报错:
2018/01/11 22:26:21 [error] 14612#10464: *21 "D:/logs/中文/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: localhost, request: "GET /d/%D6%D0%CE%C4/ HTTP/1.1", host: "localhost", referrer: "http://localhost/d/"

D:/logs/中文/index.html这个文件有没有都会这样报错
...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部