服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 重写 http iis windows
  3. IIS7 URL重写 – 检查X-Forwarded-For标头
Intereting Posts
安装Merlin – “在从daemon.h:11,从status.c:1:sql.h:4:21中包含的文件中:错误:dbi / dbi.h:没有这样的文件或目录” 尝试从不存在的组中删除用户时,“服务器上没有这样的对象” 推荐安装mongoDB的方法 postfix别名:是否可以为一类电子邮件指定一个别名? Dell R710和R720上的iDRAC Exchange 2010 | Get-MailboxStatistics where子句 本地pipe理员对域控制器上的域pipe理员 Windows 2008 R2 SQL群集中丢失的群集磁盘 select文件系统块大小 如何扩展在Linux控制台编辑纳米和微微select? 什么是升级到.Net 4.0的商业案例? 更新postgres 9.1.2的服务器版本 使用10GB内存和50%连接的100%CPU的Haproxy 使用审计规则监视日志文件 为什么这些帐户在密码过期时被locking?

IIS7 URL重写 – 检查X-Forwarded-For标头

我很熟悉IIS和URL重写,但我刚刚得到了一个难倒我的任务。 我需要检查每个请求是否存在X-Forwarded-For HTTP头,并根据它的存在来redirect请求。

我怎样才能检查这个头?

  • nginx:删除$ host中的string
  • 将目录redirect到另一个子域
  • 你如何防止mod_rewrite解码path中的string?
  • 在.htaccess代码中的域名DOT之前使用'\'
  • 如何从HTaccess RewriteRule中排除一个子文件夹

尝试如下所示:

<rewrite> <rules> <rule name="RedirectBasedOnForwardedFor" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions> <add input="{HTTP_X_Forwarded_For}" pattern="insert your pattern here" /> </condiations> <action type="Redirect" url="/newurl/" /> </rule> </rules> </rewrite> 
  • IIS 7.5 URL重写 – 缺less“路由到服务器”选项
  • 哪些工具或技术可用于pipe理Apache的大量重写规则?
  • 我怎样才能301从一个url格式的所有stream量redirect到另一个?
  • nginx proxypath httpsredirect失败,没有结尾斜杠
  • htaccess:如何重写清理url,并将旧urlredirect到新的清理url?
  • mod_rewrite:内部重写为(假)干净的URL不可能。
  • 我可以configurationIIS 7+根据传入的主机名执行dynamic反向代理吗?
  • 在Apache + Tomcat中进行URL重写,并在Web应用程序上下文中进行更改
  • nginx:未知的“script_filename”variables
  • nginx:上传进度和重写子句

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy