httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Stone <cityli...@petmystone.com>
Subject Re: [users@httpd] VHosts, ServerName, ServerAlias and DNS ?
Date Mon, 23 Feb 2004 13:30:10 GMT
Boyle Owen wrote:

>>-----Original Message-----
>>From: Timothy Stone [mailto:citylists@petmystone.com]
>>
>>I have entered in DNS the following:
>>
>>levittpavilionharrisburg.com
>>levittpavilionharrisburg.org
>>
>>americanmusicfest.com
>>
>>I have set up two vhosts to handle these entries:
>>
>><VirtualHost *>
>>	ServerName levittpavilionharrisburg.com
>>	ServerAlias *\.levittpavilionharrisburg\.???
>>	RedirectTemp / http://www.harrisburgpa.gov/
>></VirtualHost>
>>
>><VirtualHost *>
>>	ServerName americanmusicfest.com
>>	ServerAlias www.americanmusicfest.com
>>	RedirectPermanent / http://www.americanmusicfest.org/
>></VirtualHost>
>>
>>
>>My problem is that attempting to go to "www.[domainName].com" 
>>does not work.
>>
>>Yet drop the leading "www" and it all works.
>>
>>What am I doing wrong? Should I have registered in DNS the 
>>full server 
>>name, e.g. "www.[domainName].(org|com)"?
> 
> 
> Err... Yes.
> 
> www.domain.com and domain.com are two completely distinct
> fully-qualified domain names (FQDNs). There's nothing to stop you having
> several machines on different IPs like mail.domain.com, www.domain.com,
> ftp.domain.com, www2.domain.com etc. So you have to specify the unique
> FQDN in DNS.

Thank you.

> 
> Also, I'm not so sure you can use regexps with ServerAlias - It's more
> like shell wildcards, so I'd just put:
> 
> ServerAlias *.levittpavilionharrisburg.???
> or
> ServerAlias *.levittpavilionharrisburg.*

Thank you again. I'll make that change. I do get a "Syntax OK" from 
configtest however with the regex in the ServerAlias directive. May or 
may not matter.

I'll correct the DNS today.

Tim

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
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


Mime
View raw message