Re: configuracion virtualhosting
On Thu, 18 Oct 2001, Jose Manuel Perez wrote:
> El Jue 18 Oct 2001 15:27, Nicolas Fillon escribió:
> > El Jue 18 Oct 2001 10:22, Eduardo Beltran escribió:
>
> Cada VirtualHost debe tener una IP "diferente".
ERROR, si no, para que se antepone la palabra "Virtual". ;-)
He manejado VirtualHost desde hace muuuuuu. Me atreveria a decir que es la
forma mas utilizada a traves del globo de hacer Hosting.
De la Documentacion de Apache:
Using name-based virtual hosts is quite easy, and superficially looks
like the old method. The notable difference between IP-based and
name-based virtual host configuration is the NameVirtualHost directive
which specifies an IP address that should be used as a target for
name-based virtual hosts.
For example, suppose that both www.domain.tld and www.otherdomain.tld
point at the IP address 111.22.33.44. Then you simply add to one of
the Apache configuration files (most likely httpd.conf or srm.conf)
code similar to the following:
NameVirtualHost 111.22.33.44
<VirtualHost 111.22.33.44>
ServerName www.domain.tld
DocumentRoot /www/domain
</VirtualHost>
<VirtualHost 111.22.33.44>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
Bastante claro no?. La documentacion de Apache es completisima, los invito
a repasar y hacer la tarea ;-)
>
> Lógicamente, porque todos los VirtualHost tienen la misma IP.
Idem.
---
pub 1024D/0DD0F1CA 2001-09-19 Fabian A. Arias M. (dewback) <dewback@vtr.net>
Key fingerprint = B478 850E 6C8A C388 2B65 68E5 9604 A4FC 0DD0 F1CA
Debian GNU/Linux Sid - Kernel 2.4.12-ac2 - ReiserFS
Reply to: