更改登录
commit
5754f44e69
|
@ -6,16 +6,19 @@ server {
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
client_header_buffer_size 1m;
|
client_header_buffer_size 1m;
|
||||||
|
|
||||||
|
# 处理根路径
|
||||||
location / {
|
location / {
|
||||||
root /etc/nginx/html/ocr-server-admin/;
|
root /etc/nginx/html/ocr-server-admin/;
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /index {
|
# 处理 /index 路径
|
||||||
|
location = /index {
|
||||||
root /etc/nginx/html/ocr-server-admin/;
|
root /etc/nginx/html/ocr-server-admin/;
|
||||||
index index.html;
|
try_files /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 处理其他静态文件
|
||||||
location ~* \.html$ {
|
location ~* \.html$ {
|
||||||
root /etc/nginx/html/ocr-server-admin/;
|
root /etc/nginx/html/ocr-server-admin/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue