Re: VirtualHost Problems

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

 



On Sat, Mar 24, 2018 at 2:52 PM, Jerry Malcolm <techstuff@xxxxxxxxxxxx> wrote:
> I am having a problem with my virtual host config.  Here's the basic config:
>
>       <VirtualHost xx.xx.xx.xx:80>
>            ServerName   domainA
>            Redirect permanent / https://domainA/
>       </VirtualHost>
>
>       <VirtualHost xx.xx.xx.xx:443>
>            ServerName   domainA
>            [normal host config stuff]
>       </VirtualHost>
>
>       <VirtualHost xx.xx.xx.xx:80>
>            ServerName   domainB
>            Redirect permanent / https://domainB/
>       </VirtualHost>
>
>       <VirtualHost xx.xx.xx.xx:443>
>            ServerName   domainB
>            [normal host config stuff]
>       </VirtualHost>
>
> Basically 2 domains where non-ssl requests get routed to the ssl port.
>
> 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.
>
> I figure either I have some config typo that I can't find or I'm totally
> misunderstanding how virtual host resolution works.

apachectl -S might show you vhosts you aren't looking at.  Make sure
there are none without a ServerName.

---------------------------------------------------------------------
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