I've got a server with one site which I am redirecting to https via
<VirtualHost *:80> DocumentRoot /var/www/html/secure ServerName secure.com Redirect / https://secure.com </VirtualHost>
That works no problem.
Now I'm trying to add another non-secure site
<VirtualHost *:80> DocumentRoot /var/www/html/notsecure ServerName notsecure.com </VirtualHost>
of course, because the redirect is on '/', all sites are getting redicted. I've tried changing the Redirect to the full document root, but no luck.
NameVirtualHost *:80
directive somewhere?NameVirtualHost
directive needs to be there in order to use name-based virtual hosting.