Alias server redirects to virtual server only with http

1 post / 0 new
#1 Mon, 05/01/2017 - 19:09
kuzimoto

Alias server redirects to virtual server only with http

I'm trying to restore a WordPress Multisite setup I had from my previous server configuration (Using CentOS, and CentOS Web Panel) now on Debian with Virtualmin. I have two domains, and with CWP I was able to set the web root of the second domain the same as the first one, so that WordPress would then serve up the correct website.

In Virtualmin it appears that you can't set the webroot to an existing one, so I figured that alias would be exactly what I need. It appears to work for the most part. It seems that when accessing the secondary domain, site2.com using http, it redirects to site1.com on https (I have force SSL enabled). However accessing https://site2.com/ it stays as https://site2.com/.

Is there a setting that I'm possibly missing? Can I manually edit the Apache site directives to make it so that site2 doesn't go to site1? I don't have much experience with Apache/Virtualmin so I'm not sure the best way to go about doing that.

Any help is appreciated!

Edit: Updated for clarity.