Hi everyone, I have two separate domains being hosted on a Vultr VPS (single IP address). I am trying to use Cloudflare on each domain (separate accounts).
I had free SSL’s installed on each domain, however when I try to go to domain2 I get redirected to domain1 (default domain on Vultr).
I am not sure if I messed up the DNS records or if it is an SSL issue. I am currently in the process of removing the SSL’s and reissuing them separately. I will post screen shots of each Cloudflare and Vultr DNS settings in an imgur link below.
Thanks for the help! I’ll take a look into it and see what I can find.
As a slightly unrelated note, I setup domain1 with solely nginx server settings and domain2 with nginx and apache hybrid. Does this have any effect on how I edit the vhost files?
Just trying to wrap my head around all this lingo!
.htaccess is just a “glorified” dynamic per-directory server configuration, not too much magic
As mentioned I am not all that familiar with that piece of software, hence I can guess at best, but it really depends what they mean by hybrid configuration, and if it is a classic proxy setup, who is the proxy and who the server, respectively if the proxy also needs to know about virtual hosts or whether it simply passes everything through to the server.
Thanks for all the help @sandro. I finally ended up scrapping Runcloud as it was causing more problems than benefits. I then reinstalled my Vultr server and used EasyEngine for my Wordpress installations for both domains. Found this guide very helpful.
If you only have one IP on the server, I think your issue has to do with SSL.
It used to be ever site under SSL had to have it’s own IP address on the origin server.
SNI (server name indication) is the way around that. Can you confirm that is set up correctly in your website dns bindings?
Runcloud is like Serverpilot. And I know that Serverpilot lets you configure a Default Domain. So if you hit that IP address and/or the hostname doesn’t match, you get served the default domain’s website.