PDA

View Full Version : Subdomain on another server


RichieBoy67
10-24-2019, 03:26 PM
Hey all,

I am having an issue with trying to get a subdomain with Vbulletin on a seperate server than the main domain is on. The issue is the ssl cert.

The main domain is on a windows server but I want the subdomain to be on one of my Linux servers. Works fine by pointing an a record to the ip but how do I get the ssl to work?

Thanks

In Omnibus
10-24-2019, 04:00 PM
I'm not sure that's possible because SSL certificates are built on the ability to verify a key located in a hidden folder in the public_html folder. You might try placing the same key on both servers but I'm not sure if that works or not. I've never tried it.

Dave
10-24-2019, 04:46 PM
Typically a proxy is used to deal with these kind of scenarios. The proxy handles all incoming traffic and has the proper certificates in place and then it routes the traffic to the proper host/IP address.

z3r0
10-25-2019, 06:05 AM
As we are in the days where you can get an SSL for free (https://letsencrypt.org/), just put a separate certificate on each server.

I don't use Linux servers but on Windows, it's stupidly simple - https://certifytheweb.com/

RichieBoy67
10-26-2019, 12:47 AM
I got it working with LetsEncrypt. i just couldn't get the wildcard to work but the subdomain is fine now.

Thanks for the replies! It is almost like the old days again when people were actually here! :)

--------------- Added 1572058180 at 1572058180 ---------------

Typically a proxy is used to deal with these kind of scenarios. The proxy handles all incoming traffic and has the proper certificates in place and then it routes the traffic to the proper host/IP address.
Actually that was my next plan. The main site has cloudflare so I was planning on using that for the ssl but it ended up working through the server.

Thanks Dave

--------------- Added 1572058271 at 1572058271 ---------------

As we are in the days where you can get an SSL for free (https://letsencrypt.org/), just put a separate certificate on each server.

I don't use Linux servers but on Windows, it's stupidly simple - https://certifytheweb.com/
It is pretty easy on Linux as well normally.

romaine
11-02-2019, 03:21 PM
I don't think this is possible because sub domain's ssl with goes with ssl of main domain thus you can use 2 ssl certs on a same site.