[英]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.