Apache2 and virtual hosts.
am 27.10.2009 21:17:25 von RogerHello all,
After reading the apache documentation I came up with the following
configuration:
##############################################
ServerName "servername.domain.com:80"
NameVirtualHost *:80
# Default.
Servername "servername.domain.com"
DocumentRoot "/path/default"
ServerSignature "Off"
# vhost1
ServerName "domain001.com"
VirtualDocumentRoot "/path/vhost1/%-2.0.%-1.0"
ServerAlias "www.domain001.com"
ServerSignature "Off"
# vhost2
ServerName "domain002.com"
VirtualDocumentRoot "/path/vhost2/%-2.0.%-1.0"
ServerAlias "*.domain002.com"
ServerAlias "domain003.com www.domain003.com"
ServerAlias "domain004.com www.domain004.com"
ServerAlias "domain005.com www.domain005.com"
ServerAlias "domain006.com www.domain006.com"
ServerSignature "Off"
##############################################
I'm trying to figure out why is it that I cannot access vhost2 using
www.domain00{3-6}.com. If I use domain00{3-6}.com it works fine.
I have A records point www to the corresponding domains but still I
cannot get it
working.
Any ideas why apache2 does not match some of the server aliases under vhost2.
Thank you for your time,
-r
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org