Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
448 views
in Technique[技术] by (71.8m points)

azure - best way to redirect securely one domain to another in IIS without having a website

I would like to know what is the best way to redirect everything from marketing-address.com to real-address.com.

best means

  • as less effort as possible,
  • as cheap as possible,
  • as secure as possible.

In detail:

  • Less effort: If possible without the need of creating a website oder some code like javascript
  • Secure: https://marketing-address.com should be accpeted by the browsers - no warning.
  • Cheap: if possible without buying a certificate (I don't think that this is possible) and without having a second webserver running

So in theory, the communication would be like this:

  • Making the address targeting the same IP address
  • Making the existing IIS listen to that address to
  • Let IIS tell the caller "yes, you're totally right here, but I neither I have a website nor do I have a certificate, but you don't need anything of that since you get redirected anyway..."

Is there a chance to accomplish that? If no, I would need to buy a certificate. What would be the solution then?

There are 2 restrictions:

  1. We are using an Azure App Service for hosting an asp.net core site, which seems to be very restricted in configuration possibilities
  2. The browser should definetly show the real-address.com in the URL, not the marketing-address.com.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Have you tried to use an Application Gateway before the IIS/Webapp at the backend?

I believe the AppGW will solve these issues, the AppGW can redirect the hostname to another web address, as many you want to.

https://docs.microsoft.com/en-us/azure/application-gateway/ssl-overview#tls-termination


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...