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

'server www' : could not resolve address 'www'

$
0
0

@algar wrote:

Hi all,

I was trying to find something similar but this question does not seem to be answered before, sorry if I didnt find it.

I am deploying with docker machine a haproxy configuration that includes letsencrypt for two subdomains. I got these errors:

haproxy |<7>haproxy-systemd-wrapper: executing /usr/local/sbin/haproxy -p /run/haproxy.pid -f /usr/local/etc/haproxy/haproxy.cfg -Ds
haproxy | [ALERT] 302/150350 (26) : parsing [/usr/local/etc/haproxy/haproxy.cfg:31] : ‘server www’ : could not resolve address ‘www’.
haproxy | [ALERT] 302/150350 (26) : Failed to initialize server(s) addr.
haproxy | <5>haproxy-systemd-wrapper: exit, haproxy RC=1
haproxy | <7>haproxy-systemd-wrapper: executing /usr/local/sbin/haproxy -p /run/haproxy.pid -f /usr/local/etc/haproxy/haproxy.cfg -Ds
haproxy | [ALERT] 302/150352 (29) : parsing [/usr/local/etc/haproxy/haproxy.cfg:31] : ‘server www’ : could not resolve address ‘www’.
haproxy | [ALERT] 302/150352 (29) : Failed to initialize server(s) addr.
haproxy | <5>haproxy-systemd-wrapper: exit, haproxy RC=1
haproxy | <7>haproxy-systemd-wrapper: executing /usr/local/sbin/haproxy -p /run/haproxy.pid -f /usr/local/etc/haproxy/haproxy.cfg -Ds
haproxy | [ALERT] 302/150355 (32) : parsing [/usr/local/etc/haproxy/haproxy.cfg:31] : ‘server www’ : could not resolve address ‘www’.
haproxy | [ALERT] 302/150355 (32) : Failed to initialize server(s) addr.
haproxy | <5>haproxy-systemd-wrapper: exit, haproxy RC=1

This is the configuration (Sorry for the formatting):

global
maxconn 256
lua-load /usr/local/etc/haproxy/acme-http01-webroot.lua
chroot /jail
ssl-default-bind-ciphers AES256+EECDH:AES256+EDH:!aNULL;
tune.ssl.default-dh-param 4096

defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
option forwardfor
option http-server-close
stats enable
stats uri /stats
stats realm Haproxy\ Statistics
stats auth XXX:XXX

frontend ft_ssl_vip
bind *:443 ssl crt /usr/local/etc/haproxy/certs/ no-sslv3 no-tls-tickets no-tlsv10 no-tlsv11

rspadd Strict-Transport-Security:\ max-age=15768000

# Database redirect from subdomain [alexandrie]
acl db_match_acl      hdr_end(host) -i subdomainA.domain.com
use_backend db_server if db_match_acl

# Testing server redirect from subdomain [meduse]
acl apptest_match_acl      hdr_end(host) -i subdomainB.domain.com
use_backend apptest_server if apptest_match_acl

backend db_server
server db_server XXX.XXX.XXX.XXX:80 check
http-request add-header X-Forwarded-Proto https if { ssl_fc }

backend apptest_server
server apptest_server XXX.XXX.XXX.XXX:80 check
http-request add-header X-Forwarded-Proto https if { ssl_fc }

What I am missing?
Thanks in advance for your support!
HAProxy is great!!!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4737

Trending Articles



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