main
Aaron 2025-02-04 00:33:51 +08:00
parent 7e578e0678
commit 8ab720dc2e
1 changed files with 8 additions and 5 deletions

View File

@ -6,16 +6,19 @@ server {
client_max_body_size 100m;
client_header_buffer_size 1m;
# 处理根路径
location / {
root /etc/nginx/html/ocr-server-admin/;
index index.html;
root /etc/nginx/html/ocr-server-admin/;
index index.html;
}
location /index {
root /etc/nginx/html/ocr-server-admin/;
index index.html;
# 处理 /index 路径
location = /index {
root /etc/nginx/html/ocr-server-admin/;
try_files /index.html =404;
}
# 处理其他静态文件
location ~* \.html$ {
root /etc/nginx/html/ocr-server-admin/;
}