简体   繁体   English

需要为多个客户端配置 IIS。 它们都将使用单一的代码库,但使用不同的应用程序池和数据库

[英]Need to configure IIS for multiple clients. All of them will use a single code base but different application pools and databases

I have a requirement to configure IIS for more than one client that will use a single codebase but different application pools and databases.我需要为多个将使用单个代码库但使用不同应用程序池和数据库的客户端配置 IIS。 For example, let's assume that the base URL of my website is https://www.mywebsite.com/ and I have five clients Client1, Client2, Client3, Client4, Client5.例如,假设我的网站的基础 URL 是https://www.mywebsite.com/并且我有五个客户端 Client1、Client2、Client3、Client4、Client5。 So the URLs should be the following: https://www.mywebsite.com/Client1 , https://www.mywebsite.com/Client2 , https://www.mywebsite.com/Client3 , https://www.mywebsite.com/Client4 , https://www.mywebsite.com/Client5 , and every client must have its own application pool and database but they should use the same codebase. So the URLs should be the following: https://www.mywebsite.com/Client1 , https://www.mywebsite.com/Client2 , https://www.mywebsite.com/Client3 , https://www. mywebsite.com/Client4https://www.mywebsite.com/Client5 ,每个客户端都必须有自己的应用程序池和数据库,但它们应该使用相同的代码库。

Is there a possibility to configure IIS based on the above requirement?是否可以根据上述要求配置 IIS?

I Suggest you to create an image from your codebase and use Docker to solve your problem.我建议您从您的代码库创建一个图像并使用Docker来解决您的问题。 You can move all of your database settings to config file and change them easily for each image.您可以将所有数据库设置移动到配置文件并为每个图像轻松更改它们。

Here is a tutorial of working with docker: https://www.scalyr.com/blog/create-docker-image/这是使用 docker 的教程: https://www.scalyr.com/blog/create-docker-image/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM