Date: Mon, 19 Sep 2005 12:18:23 -0400 From: Aaron Peterson <dopplecoder@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Many name - same IP Message-ID: <45d750d20509190918113c30de@mail.gmail.com> In-Reply-To: <dc6701ba050919091147ef9e62@mail.gmail.com> References: <dc6701ba050919091147ef9e62@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/19/05, Carstea Catalin <carstea.catalin@gmail.com> wrote: > How make www.blogger.com ( for example ) to have many sub-domains with sa= me IP. > Ex: > blog1.blogspot.com - 66.102.155.101 > blog2.blogspot.com - 66.102.155.101 > blog3.blogspot.com - 66.102.155.101 > -- > this 66.102.155.101 is IP of host blogspot.blogspot.com > ............................... > it is about apache with tag virtual host ? First, the authoritative DNS servers for your domain must be configured to resolve all of the sub-domains to the specified IP address. Otherwise your server will never recieve any communication to begin with. Then to set up virtual hosting with apache, if you want one vhost to service all the sub-domains, I believe you can use the ServerAlias directive in your VirtualHost definition like so: ServerName blogspot.com ServerAlias *.blogspot.com Or set up separate vhost definitions for each sub-domain if you want them to point to different web directories on your server. Aaron
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45d750d20509190918113c30de>