mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-01 22:53:29 +08:00
修了一些Bug,修改了一下nginx的相关路由配置
This commit is contained in:
@@ -60,17 +60,17 @@ http {
|
||||
# 在nginx 作为代理服务器时,设置的IP列表,会把经过的机器ip,代理机器ip都记录下来,用 【,】隔开;代码中用 echo $x-forwarded-for |awk -F, '{print $1}' 来作为源IP
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_pass http://backendSprintbootServer/;
|
||||
proxy_pass http://backendSprintbootServer/api/;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
# 查看 nginx 状态
|
||||
# location /ngx_status {
|
||||
# stub_status on;
|
||||
# access_log off;
|
||||
# #allow 127.0.0.1;
|
||||
# #deny all;
|
||||
# }
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
#allow 127.0.0.1;
|
||||
#deny all;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
# redirect server error pages to the static page /50x.html
|
||||
|
Reference in New Issue
Block a user