Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 23:45:50 +0100
From:      "Anthony Atkielski" <anthony@atkielski.com>
To:        "Gerardo Amaya G." <jogegabsd@yahoo.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Virtual Host
Message-ID:  <009301c16e27$4b17dec0$0a00000a@atkielski.com>
References:  <20011115222752.15925.qmail@web20102.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Have you defined the new domain in the DNS?  If the rest of the world cannot
resolve the new domain name, it won't be able to reach your server.

Assuming that both domains resolve to the same IP address, I do it like this
(YOUR_IP_ADDRESS represents the IP address to which the server is bound):

ServerName YOUR_IP_ADDRESS
NameVirtualHost YOUR_IP_ADDRESS:80

...

<VirtualHost YOUR_IP_ADDRESS>
ServerName www.domain.com
DocumentRoot /www/domain

...

</VirtualHost>

<VirtualHost YOUR_IP_ADDRESS>
ServerName www.other.domain.com
DocumentRoot /www/other

...

</VirtualHost>

What symptoms do you see when you try to access www.other.domain.com?

----- Original Message -----
From: "Gerardo Amaya G." <jogegabsd@yahoo.com>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Thursday, November 15, 2001 23:27
Subject: Virtual Host


> Hello all.
> I'm working right now with a server
> www.domain.com but now I want to have another address
> in
> other.domain.com in my httpd.conf I write this
>
>  NameVirtualHost *
>
>       <VirtualHost *>
>        DocumentRoot /www/domain
>        ServerName www.domain.com
>        ...
>        </VirtualHost>
>
>       <VirtualHost *>
>        DocumentRoot /www/other
>        ServerName www.other.domain.com
>        ...
>        </VirtualHost>
>
> Ans restarted my web server, But I can not get to the
> other.domain.com. I guess is something with DNS.
> What is that I should do to make it work???
>
> thanks
>
> Gerardi
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


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?009301c16e27$4b17dec0$0a00000a>