Hi We all know that our localhost can be accessed at 127.0.0.1 or your the IP assigned by your NIC which starts from 192.168.1.2 (or 192.168.0.2 in some cases depending on the router you use). My question is that, how do I map the other IPs 192.168.1.3, 192.168.1.4, 192.168.1.5 etc. etc. and have them point to my localhost? Please help Thanks
there are two perspectives in this.. you want these IP's point to localhost on a single pc regardless of what your router says [or] you want your apache server listen to those IP address as well, provided the router will route traffic to your pc. Let me know and i will guide you from there..
Hi I want the IPs to point to different folders on my PC. I am using apache 2.2.4 So for example: 192.168.1.3 will point to C:\songs 192.168.1.4 will point to C:\website\images 192.168.1.5 will point to D:\videos pls help Many thanks
Hi, You need add virtualhost's to your httpd.conf file. Virtualhost example: Port 80 DocumentRoot /www/domain ServerName www.domain.tld <VirtualHost 111.22.33.55> DocumentRoot /www/otherdomain ServerName www.otherdomain.tld </VirtualHost> <VirtualHost 111.22.33.100> DocumentRoot /www/otherdomain2 ServerName www.otherdomain2.tld </VirtualHost> Code (markup): Rudolf