Adding More IPs
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?
You *probably* can't, though if the feature exists, it'd be in your router configuration.
I think what you want to do, though, is be able to access your host on your computer from outside of your network-- in other words, you want to forward the public port 80 to the private port 80 on your computer, 192.168.1.2.
Depending on your router, this can be done in a "(Port) Forwarding" or "Virtual Servers" section of your router configuration. Create a new entry with any name, public and private ports set to 80, private IP set to your computer's private IP (192.168.1.2 in your example), and TCP or "Both" as the protocol.
Now when someone types your public IP address (to see what this is, go to whatismyip.com) into their address bar, your router will forward this to port 80 on your computer.
No no no
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