2018年7月26日

Nginx软件优化

摘要: 1、隐藏nginx版本信息 1、配置 # cat nginx.conf server_tokens off; #隐藏版本号 2、官网 http://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens 3、测试 # curl - 阅读全文

posted @ 2018-07-26 17:33 五光十色 阅读(225) 评论(0) 推荐(0) 编辑

proxy_pass根据转发时/问题

摘要: 案例: # cat nginx.conf location ^~ /abc/ { #abc目录不存在 proxy_pass http://192.168.1.1:8080/; #访问www.a.com/abc/a.html 根路径/a.html } # cat nginx.conf location 阅读全文

posted @ 2018-07-26 16:57 五光十色 阅读(483) 评论(0) 推荐(0) 编辑

nginx通过https方式反向代理多实例tomcat

摘要: 案例说明:前面一层nginx+Keepalived部署的LB,后端两台web服务器部署了多实例的tomcat,通过https方式部署nginx反向代理tomcat请求。配置一如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 阅读全文

posted @ 2018-07-26 16:36 五光十色 阅读(526) 评论(0) 推荐(0) 编辑

导航