Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: trouble with VirtualHost configuration |
|
Author |
|
justinacolmena
Joined: 03 Oct 2017 Posts: 6 Location: fairbanks, alaska, usa
|
Posted: Wed 08 Nov '17 0:02 Post subject: trouble with VirtualHost configuration |
|
|
I realize I am not supposed to post whole files, but this one is very simple, (yes, the real live domain.) Code: | /etc/httpd/conf.d/vhost.conf |
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.
Code: | <VirtualHost *:80 *:443 [::]:80 [::]:443>
DocumentRoot "/var/www/html"
ServerName www.colmena.biz
</VirtualHost>
<VirtualHost *:80 *:443 [::]:80 [::]:443>
DocumentRoot "/var/www/html"
ServerName colmena.biz
</VirtualHost>
<VirtualHost *:80 *:443 [::]:80 [::]:443>
DocumentRoot "/var/www/miel"
ServerName miel.colmena.biz
</VirtualHost>
... |
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 |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 08 Nov '17 21:00 Post subject: |
|
|
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 |
|
|
|
|
|
|