K
K
KIRNESS2021-03-11 09:41:36
HAproxy
KIRNESS, 2021-03-11 09:41:36

Why does haproxy crash when trying to listen on port 80?

Hello, I'm asking for help.
Faced such a problem. Created 3 machines on Ubuntu, machine 1 is haproxy.
on 2 I made simple html pages on apche with the text bc 1 - bc 2.
ip addr are

192.168.78.128 - haproxy
192.168.78.129 - bc 1
192.168.78.130 - bc 2

On haproxy I prescribe
frontend bsz1
        bind *:80
        default_backend fffx

backend fffx
balance roundrobin
server server1 192.168.78.129:80 check
server server2 192.168.78.130:80 check

then I do a reload haproxy and it crashes like this.
6049bb1b5e07f388425441.png

For example
, if I put the port *: 5000 on the wiretap
and I leave the IP addresses: 80
, it happens that it starts, but it does not give anything.
As I understand it, the case with the port is because if you prescribe others, haproxy starts up but it makes no sense from it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fenrir89, 2021-03-11
@KIRNESS

Maybe the config is missing mode http
Ps there is a lot of things on haproxy
Although most likely the problem is in the name of the configuration file, the correct extension is .cfg and not .txt.gz
Another option is not in the config daemon, which tells the program to run as a service and hang in memory waiting for requests instead of a single launch
Pss learn to copy text from the console truncated logs can only confuse

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question