Thursday, 12 September 2019

Creating New .Net Web App Instance with Same URL Path and Different Domain


1)      Restore the database and since the database is the same for same URL path, the File option has to be selected and the log file name and mdf file names have to be changed as per the database name. Rest of the steps for the database are the same as for deploying a new instance.

2)      Create different containing directories in wwwroot for the web-apps of the different instances.
               Inside the different containing directories the web-app name folder should be same as the                   path name needed.
               For eg. C:\inetpub\wwwroot\tms_as\tms  and C:\inetpub\wwwroot\tms_dl\tms
   

3)      Create a new Website in IIS and give its Physical Path as C:\inetpub\wwwroot\<containing path to webapp>

4)    Under the new website, select the containing directory, select the web-app folder under it,
       right(context) click and select Convert to Application.

5)     Change the database name in the new web-app’s web.config


No comments:

Post a Comment