简体   繁体   English

如何在本地 IIS 中设置反向代理

[英]How do I setup reverse proxy in local IIS

I have to implement reverse proxy setup in my local system.我必须在我的本地系统中实现反向代理设置。 I have two website and in first website i have content and second website have empty forlder, I have one website example - www.nawaz-data.com and it has main content.我有两个网站,第一个网站有内容,第二个网站有空的目录,我有一个网站示例 - www.nawaz-data.com 它有主要内容。 and I have another website example - www.nawaz-proxy.com which is empty folder.我还有另一个网站示例 - www.nawaz-proxy.com 这是空文件夹。

Requirement:要求:

Need how do i setup for reverse proxy.需要我如何设置反向代理。 When i request to www.nawaz-proxy.com than it should be redirect to www.nawaz-data.com where i have actual website content.当我请求 www.nawaz-proxy.com 时,它应该被重定向到 www.nawaz-data.com 我有实际网站内容的地方。 I have tried to setup inbound and outbound rule but unable to get result it shows: HTTP Error 403.14 - Forbidden as this domain has no content, i want to redirect this url to another url where content has stored.我已尝试设置入站和出站规则,但无法获得显示的结果:HTTP 错误 403.14 - 禁止,因为此域没有内容,我想将此 url 重定向到另一个 Z572D4E421E5E6B9BC11 存储内容的位置。

I have installed IIS windows 10 I have installed URL Rewrite I have installed Application Request Routing Cache - in that I have enable proxy setting我已经安装了 IIS windows 10 我已经安装了 URL Rewrite 我已经安装了应用程序请求路由缓存 - 因为我启用了代理设置

According to your description, I suggest you could try to use below steps to add the reverse proxy rules.根据您的描述,我建议您可以尝试使用以下步骤添加反向代理规则。

1.Open the IIS mangement console, locate the right web site and click the url rewrite 1.打开IIS管理控制台,找到右边的web站点,点击url重写

在此处输入图像描述

2.Click the Add rule and select reverse proxy. 2.点击添加规则和select反向代理。

在此处输入图像描述

3.Add the servername op IP in below window, for example: www.nawaz-data.com. 3.在window下面添加服务器名称op IP,例如:www.nawaz-data.com。 Notice: you should make sure your server could access the "www.nawaz-data.com" directly by using brower.注意:您应该确保您的服务器可以使用浏览器直接访问“www.nawaz-data.com”。 If you couldn't access it,you should use server's ip address directly.如果无法访问,请直接使用服务器的 ip 地址。

在此处输入图像描述

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

相关问题 在Visual Studio 2010中进行调试时如何设置IIS? - How do I setup IIS when debugging in Visual Studio 2010? IIS 7反向代理背后的Websocket服务器 - Websocket Server Behind IIS 7 Reverse Proxy Kestrel + IIS反向代理请求未被触发 - Kestrel + IIS Reverse Proxy RequestAborted Not Triggered IIS 反向代理干扰重定向位置标头 - IIS reverse proxy interfering with redirect location header 我该如何设置(Moq设置) - How do I setup this (Moq Setup) 如何在.NET Core,C#6和Visual Studio 2015中使用本地IIS? - How do I use a Local IIS with .NET Core, C# 6 and Visual studio 2015? 我如何将我的asp.net项目发布到我的本地iis? - how do i publish my asp.net project to my local iis? 如何使用Rabbit-mq客户端设置日志记录到本地硬盘? - how do I setup logging to the local hard drive with Rabbit-mq client? How do I setup a ASP.net Core MVC web application to IIS when publishing it creates.dll, .pdb, and.json files - How do I setup a ASP.net Core MVC web application to IIS when publishing it creates .dll, .pdb, and .json files 在同一台服务器上具有Windows身份验证的IIS反向代理获得访问被拒绝 - IIS reverse proxy with windows authentication on same server getting access denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM