Using the Haproxy Proxy HTTP service

Source: Internet
Author: User
Tags haproxy

Global
Log 127.0.0.1 Local3
Maxconn 4096
Chroot/usr/share/haproxy
UID 501
GID 501
Daemon
Pidfile/usr/local/haproxy/haproxy.pid

Defaults
Log Global
Mode http
Option Httplog
Option Httpclose
Option Dontlognull
Balance Roundrobin
Maxconn 2000
Timeout Connect 5000
Timeout Client 1000
Timeout Server 2000
Frontend Web
Bind : 80
Default_backend webservers
Backend Webservers
Balance Roundrobin
Option Httpclose
Option Forwardfor
Server WEB01 10.0.0.0.200:80 Check Inter 9000 rise 3 Fall 3//back-end real server address and listening ports
Server WEB02 10.0.0.250:80 Check Inter 9000 rise 3 Fall 3
Listen status
Bind
: 8080//port monitored by the management side
Stats enable
Stats Uri/admin?stats//Managed Account
Stats Auth admin:123456//admin password
Stats Refresh 10s
Stats Hide-version

Using the Haproxy Proxy HTTP service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.