You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dilip M <di...@s7solutions.com> on 2004/03/11 10:35:50 UTC

[users@httpd] Problem in configuring Virtaul host - IP based

> Hi,
>
> I'm trying to configure Virtual Host (IP BASED)
> ---------------------------------
> more /etc/hosts
> # that require network functionality will fail.
> 127.0.0.1               localhost.localdomain localhost
> 192.168.1.135           s7vexim.com     exim
> 192.168.1.136           www.veximforme.com
> --------------------------------
> # tail /etc/httpd/conf/httpd.conf
> .
> .
> .
>
> <VirtualHost 192.168.1.136>
> DocumentRoot /var/www/vexim
> ServerName www.veximforme.com
> </VirtualHost>
> --------------------------------
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:60:08:1D:97:BD
>            inet addr:192.168.1.135  Bcast:192.168.1.255  
> Mask:255.255.255.0
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:119232 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:42338 errors:0 dropped:0 overruns:0 carrier:13
>            collisions:2375 txqueuelen:100
>            RX bytes:56939727 (54.3 Mb)  TX bytes:10455896 (9.9 Mb)
>            Interrupt:10 Base address:0xdfc0
>
> eth0:0    Link encap:Ethernet  HWaddr 00:60:08:1D:97:BD
>            inet addr:192.168.1.136  Bcast:192.168.1.255  
> Mask:255.255.255.0
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            Interrupt:10 Base address:0xdfc0
>
> lo        Link encap:Local Loopback
>            inet addr:127.0.0.1  Mask:255.0.0.0
>            UP LOOPBACK RUNNING  MTU:16436  Metric:1
>            RX packets:7078 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:7078 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:0
>            RX bytes:1221374 (1.1 Mb)  TX bytes:1221374 (1.1 Mb)
> ------------------------------------------------------------------
>
>
> I'm able to ping to "192.168.1.136"
>
> but when i give this IP (192.168.1.136) in browser ,i'm getting default 
> page of apace > NOT  vexim page :((
>
> -Dilip

---------------------------------------------------------------------
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