简体   繁体   English

在没有网站的情况下,在 IIS 中将一个域安全地重定向到另一个域的最佳方法

[英]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.我想知道将所有内容从 Marketing-address.com 重定向到 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更少的努力:如果可能不需要创建一个网站或一些代码,如 javascript
  • Secure : https://marketing-address.com should be accpeted by the browsers - no warning.安全:浏览器应接受https://marketing-address.com - 无警告。
  • 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使地址指向相同的 IP 地址
  • Making the existing IIS listen to that address to使现有的 IIS 监听该地址以
  • 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..."让 IIS 告诉呼叫者“是的,你完全在这里,但我没有网站,也没有证书,但你不需要任何东西,因为无论如何你都会被重定向......”

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 :2个限制

  1. We are using an Azure App Service for hosting an asp.net core site, which seems to be very restricted in configuration possibilities我们正在使用 Azure 应用服务来托管 asp.net 核心站点,这似乎在配置可能性方面非常有限
  2. The browser should definetly show the real-address.com in the URL, not the marketing-address.com.浏览器应该在 URL 中明确显示 real-address.com,而不是 marketing-address.com。

Have you tried to use an Application Gateway before the IIS/Webapp at the backend?您是否尝试在后端的 IIS/Webapp 之前使用应用程序网关?

I believe the AppGW will solve these issues, the AppGW can redirect the hostname to another web address, as many you want to.我相信 AppGW 会解决这些问题,AppGW 可以将主机名重定向到另一个 web 地址,只要你想。

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

暂无
暂无

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

相关问题 Azure website redirect one https URL to another https URL same domain - Azure website redirect one https URL to another https URL same domain 将天蓝色购买的域名重定向到外部站点的最佳方法 - best way to redirect domain purchased in azure to external site 如何将发送到我的 azure 网站的电子邮件重定向到另一个域上的客户电子邮件 - How to redirect an email sent to my azure website onto a customers email on another domain 存储 Terraform 变量值而不将它们放在源代码控制中的最佳方法 - Best way to store Terraform variable values without having them in source control 在Azure虚拟机中使用iis托管网站进行域配置 - Domain configuration with iis hosted website in azure virtual machine 将Azure网站应用程序托管到另一个域 - Host Azure website application to another domain apache2,然后每个域一个网站 - apache2 more then one website per domain 有没有办法只更新 microsoft azure 中的一个文件而无需重新部署所有文件? - Is there a way to update just one file in microsoft azure without having to redeploy everything? 使用另一个SQL Server的数据更新一个SQL Server的最佳方法? - Best way to update one SQL Server with data from another SQL Server? 将带有加密列的 Azure SQL Server 数据库从一个订阅复制到另一个订阅的最佳方法 - Best way to copy an Azure SQL Server database with encrypted columns from one subscription to another
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM