Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
Haproxy cant bind [0.0.0.0:80] - CentOS 6.5

im running on CentOS 6.5 and actually trying to follow this tutorial (http://socketo.me/docs/deploy) on Websocket which says that I need to install Haproxy and run the following linux command :

sudo haproxy -f /etc/haproxy.cfg -p /var/run/haproxy.pid -D

The problem is that I get this message :

[ALERT] 015/013939 (22640) : Starting frontend public: cannot bind socket [0.0.0.0:80]

My "netstat -nat | grep 80 | grep LISTEN" returns :

tcp        0      0 212.227.96.81:80            0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:8880                0.0.0.0:*                   LISTEN
tcp        0      0 2001:8d8:86c:6e00::14:3b:80 :::*                        LISTEN
tcp        0      0 :::8880                     :::*                        LISTEN
tcp        0      0 :::7080                     :::*                        LISTEN

PS : 212.227.96.81 is the IP adress that pings on my domain name. What should I do exactly to resolve this ? Is it apache ? Because I restarted it and nothing. Thank you.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

your web server is listing on port 80

tcp        0      0 212.227.96.81:80            0.0.0.0:*                   LISTEN

you need to change the Apache/webserver port to a different one. you can't bind haproxy and Apache on the same port on the same server

client send request to port 80 ---> HA-PROXY--->send request to apache (port 8080).

asssuming both running on the same server.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!