0

I have task to create site that contains some subsites. This subsites will use same database and will have relations. Their domain names should differ. For example, domain is www.mysite.com. Subsites are

www.books.mysite.com

www.blog.mysite.com

www.sport.mysite.com

I need a help about a project structure to start this application. Can anyone give me any idea? Can I create some MVC4 projects in one solution? or can I do this with Domain Routing?

Jeyhun Rahimov
  • 3,769
  • 6
  • 47
  • 90

1 Answers1

1

This has been answered elsewhere, but not in great detail, so I'll collate the relevant points here.

A Visual Studio solution has no actual relation to the deployment of the site; it's just a container for various projects. When you deploy these projects, you can define bindings for them in IIS. This is a relatively straightforward process; if you're doing it the simple way from the UI you'll get something like this:

IIS Site Binding UI

which lets you define which addresses point to where. During development, you'll need similar bindings in your host file to play the part of these IIS bindings for your local machine.

Community
  • 1
  • 1
anaximander
  • 7,083
  • 3
  • 44
  • 62