Como funciona a hospedagem compartilhada?

7

Sempre me pergunto como é possível hospedar muitos sites em um servidor.
Por exemplo, o dreamhost pode ter mais de 100 páginas hospedadas em um servidor,
como isso é abstraído?

Possui 1 ip para cada página hospedada?

    
por madmaze 26.02.2011 / 00:47

1 resposta

8

Do artigo da Wikipédia :

Name-based
In name-based virtual hosting, also called shared IP hosting, the virtual hosts serve multiple hostnames on a single machine with a single IP address. When a web browser requests a resource from a web server using HTTP/1.1 it includes the requested hostname as part of the request. The server uses this information to determine which web site to show the user.

IP-based
In IP-based virtual hosting, also called dedicated IP hosting, each virtual host has a different IP address. The web server is configured with multiple physical network interfaces, or virtual network interfaces on the same physical interface. The web server software uses the IP address the client connects to in order to determine which web site to show the user. The primary reason for a site to use a dedicated IP is to be able to use its own SSL certificate rather than a shared certificate.

    
por 26.02.2011 / 01:07