I’m looking at the possibility of restructuring some of our applications to unify them under one brand and one site. Currently our applications are on different sub-domains of our main domain and we’d like to bring all that under one roof so our application can be something like https://app.example.com and that’s it.
To that end I’m looking at setting up a central project (a portal, if you like) that the user enters and logs into and from there they can move off into the various applications depending on what they want to do. Each of the application would sit in a virtual directory off the main application.
Each of the projects needs to have the project properties in the web tab synchronised so that they are in agreement with each other. I decided on a port number to use and duplicated that across each of the projects.
To start with the root project (that’s the one that appears at the root of the domain) should be set to use IIS Express.
- In the solution explorer right click the project and then select “Properties” from the menu, alternatively click the project then press Alt+Enter.
- Once the properties appear go to the “Web” tab and scroll down to the “Server” section.
- Ensure that “Use Local IIS Web Server” is selected
- Check “Use IIS Express” if it isn’t already.
- In the project URL choose a port number that you want to use across each of the projects. (You can leave the default for this project if you wish, but take a note of it for the others)
- Press “Create Virtual Directory” to set up IIS Express.
Remember the port number that was used for the root project as it will be needed for the other projects.
Set up the first application
In the first application project put similar details in Project Properties.
The only difference is that the Project URL has a virtual directory added to it.
Set up the second application
This is similar to the first application, except that the Project URL has a different virtual directory added to it.