Answer by Ency for Apache VirtualHost, multiple sites. 1 ssl with redirect...
Well, you need to declare this (best in httpd.conf/apache2.conf), this is important! DO NO USE ASTERISK "*"NameVirtualHost IP_or_hostname:80NameVirtualHost IP_or_hostname:443And in your virtual...
View ArticleAnswer by joschi for Apache VirtualHost, multiple sites. 1 ssl with redirect...
Try the following configuration:NameVirtualHost *:80NameVirtualHost *:443# default virtual host<VirtualHost *:80> ServerName _default_ DocumentRoot...
View ArticleAnswer by w00t for Apache VirtualHost, multiple sites. 1 ssl with redirect...
Use mod_rewrite:Your conf should look like this: <VirtualHost *:80> DocumentRoot /var/www/html/secure ServerName secure.com RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*)...
View ArticleAnswer by djdicbob for Apache VirtualHost, multiple sites. 1 ssl with...
If you have NameVirtualHost on, you have to use the IP. NameVirtualHost is needed if you are running SSL, or running VirtualHosts on different IP addresses.<VirtualHost 172.16.4.1:80>...
View ArticleApache VirtualHost, multiple sites. 1 ssl with redirect and 1 regular http
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 /...
View Article