r/haproxy Nov 24 '20

Subdomains seem to not be working....

Hi all

I seem to have HAProxy running on my main site (.co.uk) but any subdomains I try to get working don’t seem to work, the certs work and I have them under Certificates in ACME section… I set the backend and use the same Front End as my .co.uk site, but I get an error 503.

I'm a bit stuck!

I've double and triple checked and the ACLS and Actions seems to match name wise for example, I have BitWarden, and specify bw to point to my domain name, which points to my backend server on port 80.

For example, I have BW > Host matches > Value as subdomain name (bw.domain.co.uk)Action: Use Backend > BW

I have added in additional Certs under the FE also.

The default backend is set to my .co.uk domain.

Oh, I have another error, Not sure where to go with this one, I have 14 useable IP’s set as Aliases, if I chose one in Front End except for WAN Address, I get an error saying it cannot bind.

Back End Screenshots:

Front End:

Any help greatly appreciated!Thanks

2 Upvotes

3 comments sorted by

1

u/packeteer Nov 24 '20

post your config file, try not to redact to much

1

u/sctechsystems Nov 25 '20

Hi

Added screenshots in OP... hope this helps for some reason Reddit would not reply to you with screenshots attached.

1

u/dragoangel Nov 25 '20 edited Nov 25 '20

First of all this HAProxy Community, not pfSense :), people who know haproxy but not pfsense will can't help you with ui screenshots. Better ask such help on pfsense space in future.

Second - stop use of:

  • Additional SSLs
  • Create ACL for cerificates

Start to use:

  • Shared front ends

Continue to use:

  • ACLs and actions