Any reason you're using IP:PORT instead of *:PORT to define your vhosts? On Sat, Mar 24, 2018 at 5:43 PM, @lbutlr <krem...@kreme.com> wrote:
> On 24 Mar 2018, at 12:52, Jerry Malcolm <techst...@malcolms.com> wrote: > > The problem is that when I go to http://domainA it redirects (and > changes the URL on the browser) to https://domainB. If I go straight to > https://domainA it works correctly. > > Order appears to matter a whole lot. I had a lot of weird issues until I > setup my virtual hosts like this: > > <VirtualHost xx.xx.xx.xx:443> > ServerName domainA > [normal host config stuff] > </VirtualHost> > > <VirtualHost xx.xx.xx.xx:443> > ServerName domainB > [normal host config stuff] > </VirtualHost> > > <VirtualHost xx.xx.xx.xx:80> > ServerName domainA > Redirect / https://domainA/ > </VirtualHost> > > <VirtualHost xx.xx.xx.xx:80> > ServerName domainB > Redirect / https://domainB/ > </VirtualHost> > > Also, make sure that you actually have the final / on the redirect and the > DocumentRoot lines. > > > -- > I prefer bitter drinks, like coffee, and tears. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >