2

I wanted to elaborate some more on this question, but it is a straightforward one. Is it possible that two ASP.NET Web Api applications use the same domain ie. host name on a single IIS?

app1

  • www.domain.com/api/users/ POST

app2

  • www.domain.com/api/guests/ POST
mko
  • 6,638
  • 12
  • 67
  • 118

1 Answers1

4

This is possible yes, IIS supports multiple applications under a "parent".

Jack Holmes
  • 122
  • 6
  • 1
    could you explain your answer? – mko Oct 31 '16 at 16:22
  • You can create a website in IIS for "www.domain.com/api" then whilst in IIS, right click and you will have the option "Add Application". For here you will be able to add both Applications. – Jack Holmes Oct 31 '16 at 16:24
  • are webconfigs shared in this case? – mko Oct 31 '16 at 16:28
  • 1
    They will inherit from the parent config. However looking at [link]http://stackoverflow.com/questions/782252/avoid-web-config-inheritance-in-child-web-application-using-inheritinchildapplic it appears to be avoidable. – Jack Holmes Oct 31 '16 at 16:31