@abduljanjua wrote:
Hi,
I have a scenario,
I have the domain myapp.com (Appointed to HA PROXY server) and two other domains (myapp1.com and myapp2.com running on other servers)In my configuration I am trying to add them as:
frontend www_frontend
bind *:80
acl host_web1 hdr(host) -i myapp.com
use_backend myapp if host_web1frontend www_frontend_https
bind *:443
acl host_web1 hdr(host) -i myapp.com
use_backend myapp if host_web1backend myapp
balance leastconn
http-request set-header X-Client-IP %[src]
server node1 myapp1.com cookie A check
server node2 myapp2.com cookie A checkBut it gives me error that
server node1 has neither service port nor check port nor tcp_check rule ‘connect’ with port information. Check has been disabled.myapp1.com and myapp2.com are only exessible through domain names not by IP addresses.
Also in my /etc/hosts I have the IP addresses and host names in all three server.
All the servers are running nginx.
My HAPROXY domain myapp.com is also using nginx.
This is my first time working with HA Proxy and help will be much appreciated.
Thank you!
Posts: 1
Participants: 1