Report this

What is the reason for this report?

HAproxy

Posted on August 11, 2013

Hi,This is dinesh My traffic has been increasing gradually for my site , so i planned to do load balance, so i deployed droplet for new webserver & also deploy new droplet,installed Haproxy . so i got three droplet one for Loadbalance & two for webserver . even i successfully configured HAproxy,but here the problem is, i had installed WHM& cpanel for both websevers. In HAProxy configuration , have to denote both webserver IP .when we hit the IP directly it taking to cgi-sys/defaultwebpage.cgi page Instead of pointing domain name. so kindly help me to Point the IP to domain name when we hit IP directly .



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have to do this config in HAproxy server ??

Yes

Try setting this config directive: <br> <br><pre>reqirep ^Host: Host:\ yourdomainname.com</pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.