Quantcast
Channel: Apache VirtualHost, multiple sites. 1 ssl with redirect and 1 regular http - Server Fault
Viewing all articles
Browse latest Browse all 5

Apache VirtualHost, multiple sites. 1 ssl with redirect and 1 regular http

$
0
0

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.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>