You can use httpd.exe -S On Sat, Mar 24, 2018 at 3:23 PM, Jerry Malcolm <techstuff@xxxxxxxxxxxx> wrote: > > On 3/24/2018 2:04 PM, Eric Covener wrote: >> >> 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. >> >> > Thanks Eric. Is apachectrl a unix-only script? I see the manual html pages > for it in my install. But no scripts or executable. I'm using a WAMP > install. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > -- Eric Covener covener@xxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx