简体   繁体   中英

.NET Core App generate multiple websites for client

I have an app with products and I want to add a new feature "generate public list of your products on your domain". How can I do that?

I have one .NET Core app with one database. I want to generate site for my client with products from my db. I don't want to manage multiple IIS websites.

My plan is create predefined design and every client can edit texts from admin. I don't know how to deal with multiple domains and one app.

Is it possible? Thank you

You can have multiple domains pointing at the same application under the hood. They would need some why of knowing what different information they needed to present.

You could do this by detecting the current Domain name and using some kind of lookup table or something.

You could detect the domain name using something like this:

System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().DomainName;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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