# cat hosts.conf 
#app调试
upstream gl-appsrv_pools {
        server 10.1x0.2xx.1x0:8040;
        server 10.x9x.20.208:8040;
        check interval=3000 rise=2 fall=3 timeout=2000 type=http;
	check_http_send "GET /chk/chk.html HTTP/1.0\r\nHost jxxk.xxxxx.com\r\n\r\n";
 }
#
server {
    listen 80 default backlog=2048;
    listen 443 ssl;
    server_name jxxk.xxxxx.com;
    #ssl on;
    ssl_certificate /etc/cert/xxxxx3140913.pem;
    ssl_certificate_key /etc/cert/xxxx3140913.key;
    #ssl_session_cache shared:SSL:1m;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_protocols SSLv2 SSLv3 TLSv1;
    ssl_protocols TLSv1.2 TLSv1.1;
    #ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_prefer_server_ciphers on;
    location / {
        proxy_pass http://gl-appsrv_pools;
	proxy_set_header Host			$host;
	proxy_set_header X-Real-IP		$remote_addr;
	proxy_set_header X-Forwarded-For	$proxy_add_x_forwarded_for;
    }
	location /nstatus { 
		check_status;
		access_log off;
		allow xx.10x.1x.2x;#可以允许多个ip多我allow ip1; allow ip2;
		deny all;
	 }
 }
#其中/chk/chk.html 是在/data/apps/app-xxxx-test/webapps/下面的

 

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-09-11
  • 2021-08-03
  • 2021-12-28
  • 2021-08-22
  • 2022-12-23
  • 2022-02-15
猜你喜欢
  • 2021-06-19
  • 2022-03-04
  • 2021-09-19
  • 2021-10-15
  • 2021-06-21
  • 2022-12-23
  • 2021-10-12
相关资源
相似解决方案