Hi All, I'm sorry for the late visit this time. Creating a fight was never my intention. I apologize.
Anyways, I think I need to be clearer. Now, I don't intend to create multiple domains (like www.site1.com) on my own IP(10.5.5.5). The domains will be given by providers like godaddy and they will map the domains to the given IP (10.5.5.5). What I really want is conversion of traffic coming from these sites to different folders on 10.5.5.5.
A simple analogy could be - Chinese, japanese, Americans (site1,site2,site3) all land up in India (10.5.5.5). But I look at their passport on the Indian terminal, identify them and send them to different hotels as per my like.
My problem is to redirect the traffic locally. I need to point to a specific folder for each traffic condition. All these folders in my example i.e myfolder1, myfolder2, myfolder3 are on 10.5.5.5 only and 8080 port is being used. But I need to be folder/directory specific as well.
i.e Traffic Redirected from different sites should land on respective folders containing different web projects on the same IP.
Traffic from Site1 to 10.5.5.5 -> http://10.5.5.5/myfolder1/index.php ( i.e If people open site1 on godaddy e.g www.site1.com, then myfolder1 on 10.5.5.5 should be activated )
Traffic from Site2 to 10.5.5.5 -> http://10.5.5.5/myfolder2/index.php ( i.eIf people open site2 on godaddy e.g www.site2.com, then myfolder2 on 10.5.5.5 should be activated )
Traffic from Site3 to 10.5.5.5 -> http://10.5.5.5/myfolder3/index.php ( i.e If people open site3 on godaddy e.g www.site3.com, then myfolder3 on 10.5.5.5 should be activated )
Site1,2,3 are just redirecting sites. These could be domains given by godaddy, yahoo or any other domain site. The traffic from these sites is redirected to my IP i.e 10.5.5.5 by the domain providers themselves. This is not my headache. Now it is here on 10.5.5.5 that the traffic shall be identified (locally) and redirected to myfolder1,2,3 respectively i.e there needs to be some mechanism on 10.5.5.5 which locally redirects to respective folders as stated above!
10.5.5.5 has been used for example purpose only, it is class C IP only in reality and I can do port/IP redirect via IPTables, but I need to be folder specific as stated above.