Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2001 16:13:01 -0400
From:      "Andy Myers" <andy@acmyers.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Apache question
Message-ID:  <003101c134b4$d5053350$15fea8c0@heineken>

next in thread | raw e-mail | index | archive | help
Hello all.

This is an Apache question, but I'm hoping someone here can answer it.

I want my freebsd box to host another web site with a different domain name.
I set up virtual hosting in httpd.conf as instuction in the apache docs, but
when I try to bring up www.domain2.com in my browser, it always brings up
www.domain1.com.

www.domain1.com is the main site hosted by apache.  The virtual host portion
of my httpd.conf file is:

NameVirtualHost *

<VirtualHost www.domain2.com>
        ServerAdmin sysadmin@domain2.com
        DocumentRoot /usr/local/www/domain2
        ServerName www.domain2.com
</VirtualHost>


Any ideas?  I must be missing something!

Thanks much.

Andy Myers
Orlando, Florida USA




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?003101c134b4$d5053350$15fea8c0>