Re: VirtualHost Problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24 Mar 2018, at 12:52, Jerry Malcolm <techstuff@xxxxxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux