0

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

3
  • Then learn what is site binding, docs.jexusmanager.com/tutorials/… Commented Dec 22, 2019 at 6:24
  • I couldn't find where to put the settings in Web.Config File.thanks Commented 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. Commented Dec 22, 2019 at 7:21

1 Answer 1

1

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.

enter image description here

Then you could click add button on the binding window and type in your domain.

enter image description here

After added one binding and clicked OK button, you could click the add button to add the second https binding setting.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.