mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-26 06:32:13 +00:00
2e74c3f202
In order to avoid issues in the future, we want to restrict the set of allowed characters for identifiers. Starting from now, only A-Z, a-z, 0-9, '-', '_', '.' and ':' will be allowed for a proxy, a server or an ACL name. A test file has been added to check the restriction.
38 lines
734 B
INI
38 lines
734 B
INI
# This is a test configuration.
|
|
# It checks instances, servers and acl names.
|
|
|
|
listen valid_listen1
|
|
bind :8000
|
|
clitimeout 5000
|
|
contimeout 5000
|
|
srvtimeout 5000
|
|
balance roundrobin
|
|
server srv1 127.0.0.1:80
|
|
|
|
frontend www.valid-frontend.net:80
|
|
bind :8001
|
|
clitimeout 5000
|
|
acl host_www.valid-frontend.net:80 hdr(host) www.valid-frontend.net
|
|
|
|
backend Valid_BK-1
|
|
contimeout 5000
|
|
srvtimeout 5000
|
|
balance roundrobin
|
|
server bk1_srv-1:80 127.0.0.1:80
|
|
|
|
frontend www.test-frontend.net:8002/invalid
|
|
bind :8002
|
|
clitimeout 5000
|
|
|
|
frontend ft1_acl
|
|
bind :8003
|
|
clitimeout 5000
|
|
acl invalid!name url /
|
|
|
|
backend bk2_srv
|
|
contimeout 5000
|
|
srvtimeout 5000
|
|
balance roundrobin
|
|
server bk2/srv-1 127.0.0.1:80
|
|
|