服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 重写 http iis windows
  3. IIS7 URL重写 – 检查X-Forwarded-For标头
Intereting Posts
任何build议我的iptablesconfiguration? 在重新启动后在linux中收集以前的内核日志 在Dell PowerConnect交换机的VLAN1上设置802.1Q标记的端口 postfix sender_bcc_maps到本地邮箱 使用树形格式recursion修改时间文件列表 ICMP DDoS,正确的ACL? 虚拟机的用户专用别名 mod_fastcgi和mod_proxy_fcgi之间的主要区别 Ipfail忽略Heartbeats命令停止 在Ubuntu服务器上更改数据包路由策略 阻止Apple OS X App Store primefaces在我的系统上写入磁盘的大小是多less? VMwarenetworking – PortChannel与否? SSL证书apache2 – 网站加载时的证书信任问题 如何使Windows 10企业LTSB WinRE分区?

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