[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Web Server problem solved



the /etc/HOSTNAME should better contain FQDN
which means rajesh.rajesh.com is better content

the /etc/hosts should have a separate line for the localhost
so 
127.0.0.1 localhost 
is enough
but there should be another one for your domain name/host name
0.0.0.0 rajesh.rajesh.com rajesh
> 
> Now if I type http://rajesh I get the web page from /home/httpd/html.
> 
> Here is what I have done :
> 1. Changed hostname in /etc/sysconfig/network.
>       hostname = "rajesh"
> 
> 2. Changed my /etc/hosts file to :
>    127.0.0.1       localhost.localdomain   localhost rajesh 
> 
> 3. Created one more file /etc/hostname with contents 
>     rajesh

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.