回答
收藏
分享
举报
Nginx如何配置系统维护界面
提问于2022-10-28 17:01

浏览 2.2k

如何根据调用的接口来进行判断,如果接口调用失败则跳转到系统维护见面


已修改于2023-03-07 17:39



写下您的回答
发表回答
全部回答(0)

按点赞数排序

按时间排序

提问者
Dylan
这家伙很懒还未留下介绍~
0
文章
1
问答
0
粉丝
相关问答

自问自答了。看了一下代码,感觉ngx_http_compile_complex_value和ngx_http_script_compile是两套实现,前者对后者进行了封装,使用起来应该更方便。

比如,如果有一个指令需要支持复杂变量,使用ngx_http_compile_complex_value只需要定义一个ngx_http_complex_value_t变量就可以。但是使用ngx_http_script_compile需要定义flushes,lengths,variables一系列数组。。


点赞 0
浏览 4k


server{

location /qy-api/ {

set $target_url https://qyapi.weixin.qq.com$request_uri;

proxy_pass http://squid_backend;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

rewrite ^/qy-api(.*) $1 break;

}

}

upstream squid_backend { server squid_server_ip:squid_server_port; }

这样配置好像不行

点赞 0
浏览 1.8k