Hello @Malusoft India
Thanks for using Q and A forum.
To add more web applications under separate subdomains, you need to create DNS records for each subdomain. For example, if your main domain is example.com
, you can create subdomains like app1.example.com
, app2.example.com
, etc. This is typically done in your domain registrar's DNS management panel.
[Configure IIS for New Applications]
- Open IIS Manager on your Azure VM.
- Right-click on "Sites" and select "Add Website."
- Enter the site name, physical path (where your web application files are located), and the subdomain (e.g.,
app1.example.com
). - Click "OK" to create the new site.
[Set Up Databases]
- Open SQL Server Management Studio (SSMS) or your preferred database management tool.
- Create a new database for each web application. For example, create
App1DB
,App2DB
, etc. - Configure the connection strings in your web applications to point to their respective databases.
[Test Configuration]
- Ensure that the web applications are accessible via their subdomains.
- Test the database connections from each application to verify that they can communicate with their respective databases.
If this answers your query, do click Accept Answer
and Up-Vote for the same. And, if you have any further query do let us know.