> Vijay Kumar wrote:
>   Hi,
> 
>   I have couple of questions to which I am trying to find out answers.
> 
>   a)  Can one WebServer be configured with  two IP Address ? If yes , how ?
>        Can one IP address be used for hosting two Web Servers ? if yes, 
> how ?
>        Please give some url's etc , so that I can understand thing  in a
>        better manner.
> 
> My answer to yr above queries is yes as per my understanding.I do not 
> know if
> you have gone through Apache Web Server configuration details.However, 
> with Apache it
> is possible to configure " Virtual Hosts" which are either IP-based ( 
> multiple IP addresses each pointing to a specific web page) or 
> Name-based ( single IP and multiple URL's pointing to web pages).
> In case you already know about this or any other meaning is present in 
> yr query pl. mail back.
> Murali

The thing you ask for is virtual hosting.

In order to that u will have to set IP aliases or Virtual Interface. In
order to that create a file in
/etc/sysconfig/network-scripts/ifcfg-ethX-rangeX. 
ethX - the eth no of ur network card
rangeX - the range preferably 1
Add these lines
IPADDR_START=<ipaddress start range> eg 192.168.0.5
IPADDR_END=<ipaddress stop range> eg 192.168.0.10
CLONENUM_START

restart the network service
service network restart

You will now have aliases for ur IP.
Next create the webpages and create a virtual host which links to this
IP

Jitz





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to