How to configure common code (ASP.NET) for multiple domain names?

I created a website, and now the client wants to share it between three different domains. What is the best way to do this? This is what I still have.

  • c: / website1 / points to www.website1.com
  • c: / website1 / vd1 / points to www.website2.com
  • c: / website1 / vd2 / points to www.website3.com

The web host I'm working with has done this as follows, but now I get a bunch of errors that don't seem to see the App_code folder. Do I need to make a lot of changes? How does this affect location links?

+3
source share
2 answers

, , , . ? IIS .

0

, , , , www.website2.com www.website3.com - , /vd1//vd2/ ( , /app _code/folder c:\website1 \, , css, , - .., ).

, , ​​/app_code/, Visual Studio? .cs. .dll -, .

, , , (, , ..).

, /bin/ . , - www.website1.com.

, , , , , , , , , - Bryan , ( ) IIS, .

-, " ", System.Web.UI.Page ServerName URL- - MasterPages, , OnPreInit.

, , , .

+3

Source: https://habr.com/ru/post/1736020/


All Articles