[ILUG] Virtual Hosts : Using One IP Address??
Comerford, Wayne
wayne.comerford at bowneglobal.ie
Tue Jan 25 15:17:20 GMT 2000
Hi Guy's
Is it possible to setup more than one Domain name on a sigle IP address.
As far as i know it is by using Non-IP Virtual Host.
Well i'll try to explain what i need. I have a IP address. 193.X.X.X and i
have a registered domain name. www.Mydomain.com to that IP address. What i
want is to be able to setup my IP address(193.X.X.X) as my primary domain
name and www.Mydomain.com as my second. So when you type in www.Mydomain.com
you get one web site and when you type in my IP address you get my main
site.
I'm using NameVirtualHost with my IP address
NameVirtualHost 193.X.X.X
<VirtualHost 193.X.X.X>
ServerName 193.X.X.X
DocumentRoot /home/waynec/html
</VirtualHost>
<VirtualHost 193.X.X.X>
ServerName www.Mydomain.com
DocumentRoot /home/Mydomain.com
</VirtualHost>
I've set SeverName the same as my IPaddress
ServerName 193.X.X.X
and i've got Listen to the same IP address.
I''ve read the how-to on this and i'm still really confused.
Would anybody be able to help me.
Wayne C.
More information about the ILUG
mailing list