Apache VirtualHost, multiple sites. 1 ssl with redirect and 1 regular http
- by pedalpete
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.