Smooda
05-04-2003, 08:13 PM
hi
Im kinda new on linux but trying to figure it out.
Im gonna post first what i have and then what i want :
i got a server running redhat and i bout a domain from a company.Then i asked the company that is hosting my server to add to the server's ip the domain name i bought and registered.
So i have the ip (lets say 205.178.39.1) from the isp that is hosting my server and the domain name (lets say bleh.net).
Now the Isp gave me an additional two(2) which i intended to use for vitual hosts.
a) I have added in /etc/hosts the ips and domain names i wanted
i.e: 127.0.0.1 localhosts.localdomain.localhost
205.178.39.1 bleh.net
205.178.39.2 bla.bleh.net
205.178.40.12 another.notexisting.vhost.net
b) did the apropriate on /etc/sysconfig/networkNETWORKING=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=bleh.net
Now what i want is to set up the other 2 ips to some virtual hosts,or even set some virtual hosts to the main ip.Thing is,i dont know how.
any explaination would be apreciated,thanx
Im kinda new on linux but trying to figure it out.
Im gonna post first what i have and then what i want :
i got a server running redhat and i bout a domain from a company.Then i asked the company that is hosting my server to add to the server's ip the domain name i bought and registered.
So i have the ip (lets say 205.178.39.1) from the isp that is hosting my server and the domain name (lets say bleh.net).
Now the Isp gave me an additional two(2) which i intended to use for vitual hosts.
a) I have added in /etc/hosts the ips and domain names i wanted
i.e: 127.0.0.1 localhosts.localdomain.localhost
205.178.39.1 bleh.net
205.178.39.2 bla.bleh.net
205.178.40.12 another.notexisting.vhost.net
b) did the apropriate on /etc/sysconfig/networkNETWORKING=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=bleh.net
Now what i want is to set up the other 2 ips to some virtual hosts,or even set some virtual hosts to the main ip.Thing is,i dont know how.
any explaination would be apreciated,thanx