Best way to handle this is having multiple WAN IP’s to assign for each site. Otherwise you’d need to host all the sites in 1 instance but they would share all the same ssl cert.
i would recommend getting two wan IPs, one pointing 80/443 to each swag instance. your site2 swag probably isn’t even starting since you’re using http validation without port 80 being passed to it.
Hi Guys,
I will pin my question, here so not to start new thread. Since obviously there is no way to run simultaneously multiple swags on the same host, is there another way to set multiple domains in one swag to get multiple domains in one certificate?
I checked the docs but not sure how I missed it.
Thanks, @driz
@MikeBusuttil
since there is a way to get multiple domains in one swag you can achieve what you were hoping for to host multiple domains on the same host
the principle is simple:
One main swag that will have ports 80/443 ported will manage certificate requests for all domains and subdomains, also host one of the domains and act as a proxy to all other domains.
other containers don’t have to be linuxserver swag can be any other http server, but you need to remember to use different ports for each of the server instance, so for example second http server would have http/https mapped to example 80001/44301 and then you proxy secondary domain from main swag to http://127.0.0.1:80001 and do the same for all further domains
You can also proxy http services from other servers/nodes as well just need to use their IP address instead localhost (127.0.0.1)