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.