IIS Url规范重写,但保留IP地址访问权限 [英] IIS Url canonical rewrite, but preserve IP Address access

查看:410
本文介绍了IIS Url规范重写,但保留IP地址访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点难过。我们的Web服务器前面有一个负载均衡器,并且规则可以从myDomain.com到www.mydomain.com进行规范的重写。

I'm a little stumped. We have a load balancer in front of our web servers, and rules in place to do a canonical rewrite from myDomain.com to www.mydomain.com.

这很有效,但在添加此规则之前,我可以按IP地址(绕过负载均衡器)点击我的个人服务器,因此检查状态等。

This works great, but prior to adding this rule, I could hit my individual servers by IP address (bypassing the load balancer), and therefore check statuses, etc.

我试过了首先添加规则以允许IP地址,但无论我的设置如何,它似乎仍会处理其他规则。

I've tried adding a rule first to allow the IP address, but it still seems to process the others regardless of my settings.

这是IIS 7.0。任何帮助将非常感谢如何正确编写规则。

This is IIS 7.0. any help would be greatly appreciated on how to write the rules correctly.

推荐答案

好的,终于明白了。我在我的域名规范规则上面添加了另一个规范规则,该规则与我的IP地址模式匹配,然后告诉它什么也不做,并停止处理规则。

Ok, finally figured it out. I added another canonical rule above my domain name canonical rule that matches the pattern of my IP address, and then just told it to do nothing, and stop processing rules.

有效。

这篇关于IIS Url规范重写,但保留IP地址访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆