Quantcast
Channel: Apache VirtualHost, multiple sites. 1 ssl with redirect and 1 regular http - Server Fault
Browsing latest articles
Browse All 5 View Live

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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Apache 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

Browsing latest articles
Browse All 5 View Live


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