http://www.debian-administration.org/articles/358
This article might be of help to you
On May 14, 2007, at 6:35 PM, Glen Vickers wrote:
K I figured out whats going on with my virtual hosts. I have to have 3
because of the differences. But I noticed that if I go sillumutah.com or
sillumutah.net it works fine..
If I put the WWW in front or any other prefix it bombs to the default. So
my guess is its my virtual server config. Only reason I say that is because
my DNS resolves all addresses properly to the correct IP address. So I
looked online and thought I had it. My last test said NO! so my friends.
What am I missing to get the WWW or any other prefix to work?
Keep in mind that nslookup does pull up each of these correctly with all
prefix's. both inside and out.. So I'm stumped.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html
ServerName www.buddistpalm.net
ServerAlias buddistpalm.net *.buddistpalm.net
ErrorLog logs/buddispalm.net-error_log
CustomLog logs/buddistpalm.net-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/sillumutah
ServerName www.sillumutah.com
ServerAlias sillumutah.com *.sillumutah.com
ErrorLog logs/sillumutahcom.error_log
CustomLog logs/sillumutahcom.access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/sillumutah
ServerName www.sillumutah.net
ServerAlias sillumutah.net *.sillumutah.net
ErrorLog logs/sillumutahnet.error_log
CustomLog logs/sillumutahnet.access_log common
</VirtualHost>
I like what you have there and it does make sense, only thing is that I
don't think it's my DNS. I'm using bind as well and this is 1 of my host
files. It's the same across the board really and works for the main domain.
But then again I might be missing something there.
$TTL 3D
@ IN SOA ns1.sillumutah.zone. hostmaster.sillumutah.com. (
20071302
3600
3600
3600
3600 )
NS www.sillumutah.com.
sillumutah.com. MX 10 mail.sillumutah.com.
localhost.sillumutah.com A 127.0.0.1
shaolin.sillumutah.com A 199.104.125.190
sillumutah.com CNAME shaolin.sillumutah.com.
mail.sillumutah.com CNAME shaolin.sillumutah.com.
ns1.sillumutah.com CNAME shaolin.sillumutah.com.
www.sillumutah.com CNAME shaolin.sillumutah.com.
its worked in the past so what your saying is that the example they give
would be better concidering the NIC is an internal address?