[lug] virtual domains

rm at mamma.varadinet.de rm at mamma.varadinet.de
Wed Jun 7 15:47:49 MDT 2000


On Wed, Jun 07, 2000 at 02:10:56PM -0700, hector M Banda wrote:
> Hi all,
> I have a server where I like to host virtual domains ( about 3 or 4) but I'd
> like to see some recommendations before I can start making changes. I already
> have one running on my server with DNS and everything but AI want to add three
> more.

I assume we talk about webservers here ...

> 	Let say:
> 
> 	I already own all those domains that I want to host . Now, when I
> register the domains and I get all the DNS's ( like granitecanyon) do I point
> all those domains to the same server IP address?

Yes, unless you have more than one IP-Address for your webserver and
compelling reasons for using them (like differnt firewall settings
for the different servers).

> I know there are some changes I need to do on my web server configuration but
> I'm not sure about the best approach to continue.

I guess, it depends what server software you use ;-) 
If you use Apache (v. 1.3.x) you need to do the following:

In the main section of the configuration file (usually http.conf):

 # Your servers IP Address
 NameVirtualHost 192.168.2.98   

For each virtual host:

  <VirtualHost 192.168.2.98>
  ServerName     my.domain.com
 
  DocumentRoot   /var/www/my.domain.com/htdocs
  ErrorLog       /var/www/my.domain.com/logs/error
  TransferLog    /var/www/my.domain.com/logs/access


  ... Server specific configuration options here ....

  </VirutalHost> 

This should get you started. Apache has pretty good
online documentation that usually comes with the
apache packages of the major linux distributions and 
is also available online at <http://ww.apache.org>.

 Ralf Mattes





More information about the LUG mailing list