Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2000 13:57:19 +0200
From:      Marc Silver <marcs@draenor.org>
To:        Nathan Vidican <webmaster@wmptl.com>
Cc:        questions@freebsd.org
Subject:   Re: Apache Virtualhosts an multiple addresses
Message-ID:  <20000704135719.J82739@draenor.org>
In-Reply-To: <3961CF36.104BB7D6@wmptl.com>; from webmaster@wmptl.com on Tue, Jul 04, 2000 at 07:49:10AM -0400
References:  <3961CF36.104BB7D6@wmptl.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Why not just use the ServerAlias line in apache.  :)

For eg:

<VirtualHost x.x.x.x>
  ServerAdmin webmaster@x.org
  DocumentRoot /usr/local/x
  ServerName x.org
  ServerAlias www.x.org www.superman.org www.yougettheidea.org
  ErrorLog /usr/local/logs/www.x.org-error_log 
  CustomLog /usr/local/logs/www.x.org-access_log common
</VirtualHost>

Something like that should work just fine.

Cheers,
Marc

On Tue, Jul 04, 2000 at 07:49:10AM -0400, Nathan Vidican wrote:
> Is it possible, to have name-based virtual hosting wherein any given
> virtual host can be accessed as somehost.com, or www.somehost.com;
> preferably without having to add to virtual hosts to the system?
> 
> 
> -- 
> Nathan Vidican
> webmaster@wmptl.com
> Windsor Match Plate & Tool Ltd.
> http://www.wmptl.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000704135719.J82739>