2015-10-01 31 views

回答

1
frontend weblb 
bind *:80 
acl is_www hdr_beg(host) ilanni.com 
redirect prefix https://www.ilanni.com code 301 if is_www 

acl is_host hdr_beg(host) wwww.ilanni.com 
redirect scheme https if !{ ssl_fc } 
bind *:443 ssl crt /etc/haproxy/ilanni.com.pem 

use_backend sellerserver if is_host 

backend sellerserver 
balance source 
server web1 127.0.0.1:8111 maxconn 1024 weight 3 check inter 2000 rise 2 fall 3 
相關問題