6
2
I have a server which has one static IP address (let's say it's x.x.x.x). How can I set up multiple websites on this server?
What I can think of is creating multiple website and publish them through different ports. So I can access website 1 from x.x.x.x:8081 and website 2 from x.x.x.x:8082 etc. Then register different domains and point to x.x.x.x:8081 and x.x.x.x:8082 separately. Is that the correct way? This is the first time I'm doing this kind of work and I lack of confidence. Can anyone point me the right direction?
Also can anyone describe how to configure the domain(s) in my situation? Thanks.
What server software are you using? Apache? Lighttpd? – Jorge Fuentes González – 2013-05-27T13:39:48.273
1this is exactly the reason why the host header was made mandatory in http 1.1 – ratchet freak – 2013-05-27T15:17:45.380