Background
I have recently developed a MVC application for a client and they would like to host it, along with a few other apps on the same server.
I am more of a developer than a server admin, but my instinct was to set up a new site in IIS with it's own sub-domain binding.
The client, however, would like to instead create a virtual directory in the default site that points to the application. So, for example, you would have:
COMPANY.COM/APP1
and COMPANY.COM/APP2
Rather than:
APP1.COMPANY.COM
and APP2.COMPANY.COM
This did work; however, it conflicted with relative URLs in standard HTTP markup, a problem that was quickly resolved.
Question
Is it better to host multiple web apps on the same server as separate sites or as virtual directories within the default website? Are there any pitfalls with the virtual directory approach?
I am not judging the virtual directory approach, it is just new to me and I want to ensure that it won't cause problems now or in the future.