@Emsanator wrote:
Hello
How can I make FTP Connection?
This is conf file:
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
stats socket /var/lib/haproxy/statsdefaults
log global
mode http
option httplog
option dontlognull
retries 3
redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000listen stats
bind *:8080
mode http
option forwardfor
option httpclose
stats enable
stats show-legends
stats refresh 5s
stats uri /stats
stats realm Haproxy\ Statistics
stats auth loadbalancer:loadbalancer
stats admin if TRUEfrontend MAIN
bind *:21
bind *:80
bind *:143
bind *:443
bind *:993
mode httpacl domain1_URL hdr_dom(host) -i domain1.com acl domain2_URL hdr_dom(host) -i domain2.com acl domain3_URL hdr_dom(host) -i domain3.com use_backend domain1 if domain1_URL use_backend domain2 if domain2_URL use_backend domain3 if domain3_URL
backend domain1
mode http
server web-first 192.168.1.124:80backend domain2
mode http
server web-second 192.168.1.197:80backend domain3
mode http
server web-third 192.168.1.197:80
Posts: 1
Participants: 1