Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

BitNami WAMP Stack

Contains ApacheLounge build

trouble with VirtualHost configuration

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 03 Oct 2017
Posts: 6
Location: fairbanks, alaska, usa

PostPosted: Wed 08 Nov '17 0:02    Post subject: trouble with VirtualHost configuration Reply with quote

I realize I am not supposed to post whole files, but this one is very simple, (yes, the real live domain.)

The trouble I was having is that the "*" virtual hosts did not seem to be catching the IPv6 sockets, and then the IPv6 connections would fall through to the default.
<VirtualHost *:80 *:443 [::]:80 [::]:443>                                       
        DocumentRoot "/var/www/html"                                           
        ServerName www.colmena.biz                                             
<VirtualHost *:80 *:443 [::]:80 [::]:443>                                       
        DocumentRoot "/var/www/html"                                           
        ServerName colmena.biz                                                 
<VirtualHost *:80 *:443 [::]:80 [::]:443>                                       
        DocumentRoot "/var/www/miel"                                           
        ServerName miel.colmena.biz                                             


Is this the right way to specify that the same content be served for each virtual host, as four separate cases, whether http or https, whether IPv6 or IPv4?
Back to top

Joined: 16 Oct 2007
Posts: 2137
Location: Sun Diego, USA

PostPosted: Wed 08 Nov '17 21:00    Post subject: Reply with quote

Seems to me just the *:80 *:443 should cover all IPs whether IPv4 or 6. It works that way for me at least.
Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1