Azure Virtual Machine hosting - more than one domain to same IP address?

Hi

I have a Azure Virtual Machine VM with fixed IP , say 123.456.789.101
I want this Azure VM to host more than one website, the different websites having different domains, but not sure if this can be done

Can I have more than one domain map to this single Azure Virtual Machine IP, and the different domains to different virtual directories/sites on the same Azure  Virtual machine?

So I have 3 domains say
www.abc.com    - this should go to site one say 123.456.789.101/abc
www.def.com  - this should go to site two say 123.456.789.101/def
www.ghi.com - this should go to another site say 123.456.789.101/ghi

I don't want user to have to type in virtual directory
rwallacejAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nociSoftware EngineerCommented:
Then you create domain within the webserver, and assign a different root to each of the domains.
(The top level directory is specified there).
David Johnson, CD, MVPRetiredCommented:
exactly the same way one would do it with a local machine. add the bindings for the additional domain name.
in iis for every website use new website command.new website

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rwallacejAuthor Commented:
thanks
how does this work with respect to  PORTS ?
can all sites still be on PORT 80 ?
David Johnson, CD, MVPRetiredCommented:
yes, in the bindings set the hostname (domain name)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.