摘要: backend web1 {.host="tomcat service ip or elb ip or domain"; .port="server_port"; .probe ={ .url = "/"; .interval = 20s; .timeout = 3s ; .window = 1; 阅读全文
posted @ 2020-09-04 18:20 winss 阅读(149) 评论(0) 推荐(0)
摘要: 通过elb装载证书,这样可以在同一个nginx服务器同一个端口配置多个域名,确实方便好多 目前网站大都要求https访问,同时要兼顾http访问请求,这就有了http to https的需求 多个域名做多个rewrite不好看也不方便维护,做一个统一的rewrite最好: server{ liste 阅读全文
posted @ 2020-09-04 17:41 winss 阅读(490) 评论(0) 推荐(0)
摘要: 设置header时 -t报 proxy_set_header is not terminated by ";" 原配置: proxy_set_header X-Client-Type ${clientType}; 修改为 proxy_set_header X-Client-Type $clientT 阅读全文
posted @ 2020-09-04 13:03 winss 阅读(303) 评论(0) 推荐(0)