Haproxy file example of ACL based on user Client

Source: Internet
Author: User
Tags haproxy

Global

Log 127.0.0.1 Local0

Maxconn 32768

Chroot/data/apps/haproxy/var/chroot

User Haproxy

Group Haproxy

Daemon

Nbproc 1

Pidfile/data/apps/haproxy/haproxy.pid

Spread-checks 4

Defaults

Log Global

Mode http

Retries 3

Option Redispatch

Contimeout 5000

Clitimeout 50000

Srvtimeout 50000

Frontend webtest

Bind *:90

ACL Agent Hdr_sub (user-agent)-I MSIE 8.0

Use_backend Agent_server If Agent

ACL 91CPM Hdr_beg (host)-I www.91cpm.com

Use_backend Www.91cpm_server If 91CPM

Backend Www.91cpm_server

Stats enable

Stats Hide-version

Stats Uri/admin?status

Stats Auth Admin:admin

Mode http

Balance Roundrobin

Cookie Jsessionid Prefix

Option Forwardfor

Cookie ServerID Insert Indirect

Option Httpchk GET/

Server web01 10.2.30.79:80 Cookie maxconn 2048 weight 8 Check port Inter 5000

Fall 1

Backend Agent_server

Stats enable

Stats Hide-version

Stats Uri/admin?status

Stats Auth Admin:admin

Mode http

Balance Roundrobin

Cookie Jsessionid Prefix

Option Forwardfor

Cookie ServerID Insert Indirect

Option Httpchk GET/

Server web01 10.2.30.80:80 Cookie maxconn 2048 weight 8 Check port Inter 5000

Fall 1


Haproxy file example of ACL based on user Client

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.