We help IT Professionals succeed at work.
Get Started

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

Last Modified: 2016-03-29

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
Watch Question
The More I know, the more I don't know
Distinguished Expert 2020
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE