You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "asiani@wanadoo.fr" <as...@wanadoo.fr> on 2004/09/05 19:56:43 UTC

[users@httpd] Host file configuration

Hello,

If i want a machine have a domain : example : "www.linux.fr"

What is the operation i have to do on the machine ?
how can i configure the hosts file ?

do i change : 127.0.0.1   localhost.locadomain

or just add : IP   www.linux.fr

?

is there other thing to do on the machine ?

Do you have documentation about this ?

thks,
Alain

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Host file configuration

Posted by hunter <th...@gmail.com>.
On Sun, 05 Sep 2004 19:56:43 +0200, asiani@wanadoo.fr <as...@wanadoo.fr> wrote:
> Hello,
> 
> If i want a machine have a domain : example : "www.linux.fr"
> 
> What is the operation i have to do on the machine ?
> how can i configure the hosts file ?
> 
> do i change : 127.0.0.1   localhost.locadomain
> 
> or just add : IP   www.linux.fr
> 
> ?
> 
> is there other thing to do on the machine ?
> 
> Do you have documentation about this ?
> 
> thks,
> Alain
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
Alain,

The syntax in the host file is...

<ip_address> <hostname> <alias>

So, your machine (or any other that has the same entry) would resolve
www.linux.fr to the ip address in the host file.

Chris Lewis

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org