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 *:80directive somewhere? – Zoredache Jun 1 '10 at 19:05NameVirtualHostdirective needs to be there in order to use name-based virtual hosting. – joschi Jun 2 '10 at 7:17