[PATCH compass-ci 1/2] container/srv-http fix Chinese garbled

12 Oct
2020
12 Oct
'20
11:35 a.m.
problem: Chinese file name and content display garbled characters Signed-off-by: Lu Weitao <luweitaobe@163.com> --- container/srv-http/root/etc/nginx/conf.d/default.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/container/srv-http/root/etc/nginx/conf.d/default.conf b/container/srv-http/root/etc/nginx/conf.d/default.conf index 2bf55b6..403b0dc 100644 --- a/container/srv-http/root/etc/nginx/conf.d/default.conf +++ b/container/srv-http/root/etc/nginx/conf.d/default.conf @@ -6,6 +6,8 @@ server { root /usr/share/nginx/html; index index.html; + charset utf-8,gbk; + location /favicon.ico { log_not_found off; } -- 2.23.0
1598
Age (days ago)
1598
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lu Weitao