Page 1 of 1

Funny Redirects aftp PHP Selector and SSL

Posted: Tue Mar 14, 2023 3:27 pm
by miracleman12
Hello,

I have inherited a Vesta server for a "client" that desperately needed some updates. Seemed easy enough after I was able to gain access. As a background, my experience is mainly with cpanel and SME.

Here's the the issue:
CentoOS 7 with latest Vesta Updates, All sites running Wordpress
I think there is apache and nginx as a proxy
domain1 and domain2 seem to have active Lets Encrypt certs

There are 3 "users" or sites in question, one appears to be an old dev site. There are two domains, domain1.com and domain2.com with the old dev site at dev.domain2.com

Here's what I did, the best I can recall.
-- Changed Name Servers at registrar level
-- Created new NS records on new NS
-- Ran PHP Selector
-- Changed PHP version for both domains in Web config for user

Aftermath
-- phpmyadmin begins to report wrong PHP version (fixed)
-- SSL Dies for both
-- Attempt to activate Lets Encrypt SSL
-- https for domain1 begins to work (but http redirects to http domain2)
-- https for domain2 redirects to https domain1
-- http for domain2 pulls wordpress installation from dev (I think. Which is useless)
-- SSL Checker reports that domain2 cert is for domain1

I have went through the log files, tried lots of things, scoured this forum and Google, but nothing.

Is it a dns issue? Is it a nginx issue? Is it a httpd issue? Combination?

I'm hoping that someone here might have some insight or advice so that I can get these websites working properly. Any help would be appreciated!