Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4740

How can I make FTP Connection?

$
0
0

@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/stats

defaults
log global
mode http
option httplog
option dontlognull
retries 3
redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000

listen 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 TRUE

frontend MAIN
bind *:21
bind *:80
bind *:143
bind *:443
bind *:993
mode http

acl 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:80

backend domain2
mode http
server web-second 192.168.1.197:80

backend domain3
mode http
server web-third 192.168.1.197:80

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>