Untitled
10 months ago in Plain Text
http:
# HTTP(S) 重写,支持header、302、307、reject多种策略
# url-Rewrite:
# - ^http://g\.cn https://www.google.com transparent
# - ^https?://www\.google\.cn https://www.google.com 302 # 直接返回一个 302 重定向的响应
# - ^https?://ad\.example - reject # 拒绝请求
header-Rewrite:
- https?:\/\/(.*) request-add X-Forwarded-For 173.52.219.64
# - https?:\/\/(.*) request-Replace X-Forwarded-For 173.52.219.64
- https?:\/\/(.*) request-add X-Real-IP 173.52.219.64
# - https?:\/\/(.*) request-Replace X-Real-IP 173.52.219.64
- https?:\/\/(.*) request-add X-Remote-IP 173.52.219.64
# - https?:\/\/(.*) request-Replace X-Remote-IP 173.52.219.64
- https?:\/\/(.*) request-add X-Remote-Addr 173.52.219.64
# - https?:\/\/(.*) request-Replace X-Remote-Addr 173.52.219.64
- https?:\/\/(.*) request-add X-Originating-IP 173.52.219.64
# - https?:\/\/(.*) request-Replace X-Originating-IP 173.52.219.64