Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Feudalman committed Nov 27, 2024
1 parent 0b2c6de commit e9342cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ server {
try_files $uri $uri/ /index.html;
}

location /zh {
rewrite ^/zh(/.*)$ $1 break;
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}

location = 50x.html {
root /usr/share/nginx/html;
}
Expand Down

0 comments on commit e9342cb

Please sign in to comment.