In ASP.NET MVC How can I have a Website with two addresses URL on One Web Application I don't know the configuration of the Web.Config File .One of the addresses is moved to HTTPS and one of the addresses is to HTTP only. Thanks
-
Then learn what is site binding, docs.jexusmanager.com/tutorials/…Lex Li– Lex Li2019-12-22 06:24:58 +00:00Commented Dec 22, 2019 at 6:24
-
I couldn't find where to put the settings in Web.Config File.thanksA.R.SEIF– A.R.SEIF2019-12-22 06:52:13 +00:00Commented Dec 22, 2019 at 6:52
-
It's not in web.config. It's configured in IIS. The XML in the linked article is part of the applicationhost.config file, but you should configure the bindings through the UI (Internet Information Services (IIS) Manager) to be safe.madreflection– madreflection2019-12-22 07:21:33 +00:00Commented Dec 22, 2019 at 7:21
Add a comment
|
1 Answer
Do you mean you want to set multiple domain(address) to single web site? If this is your requirement, I suggest you could try to use IIS management console to achieve your requirement.
You could open the IIS management console and right click the site and select edit bindings.
Then you could click add button on the binding window and type in your domain.
After added one binding and clicked OK button, you could click the add button to add the second https binding setting.


