简体   繁体   English

IIS - 如何将域名屏蔽到另一个域中的特定页面

[英]IIS - How to mask a domain name to a specific page in another domain

Let say if the URL provided to users is假设提供给用户的 URL 是

http://domainA.com http://domainA.com

I need to redirect users to我需要将用户重定向到

https://domainB.com/page1.aspx https://domainB.com/page1.aspx

By having users still see https://domainA.com/page1.aspx in the address bar.通过让用户仍然在地址栏中看到https://domainA.com/page1.aspx

Then any links on page1.aspx must have domainA.com as domain name in URLs.那么 page1.aspx 上的任何链接都必须将 domainA.com 作为 URL 中的域名。 Users should see the links like below links on page1.aspx用户应该在 page1.aspx 上看到类似以下链接的链接

https://domainA.com/page2.aspx https://domainA.com/page2.aspx

https://domainA.com/page3.aspx https://domainA.com/page3.aspx

page1.aspx, page2.aspx, and page3.aspx are actually hosted on https://domainB.com page1.aspx、page2.aspx 和 page3.aspx 实际上托管在https://domainB.com

How could I achieve this?我怎么能做到这一点? URLRewrite? URL重写? ARR? ARR? How many rules do I need to set this?我需要设置多少条规则?

To serve content from another domain you will need to configure IIS as a reverse proxy :要提供来自另一个域的内容,您需要将IIS 配置为反向代理

  1. Install Application Request Routing (ARR)安装应用程序请求路由 (ARR)
  2. Click Server Proxy Settings单击服务器代理设置
  3. Check Enable proxy勾选启用代理
  4. Set HTTP Version to Pass through设置HTTP版本通过

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

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