Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反向代理模式,同时访问微信与企业微信的API接口异常 #659

Open
Dengpr opened this issue Feb 7, 2025 · 0 comments
Open

Comments

@Dengpr
Copy link

Dengpr commented Feb 7, 2025

services:
  - name: https
    addr: :443  # 监听 HTTPS 服务的 443 端口
    handler:
      type: tcp
      metadata:
        sniffing: true
    listener:
      type: tcp
    forwarder:
      nodes:
        - name: weixin-api
          addr: qyapi.weixin.qq.com:443  # 代理 https://qyapi.weixin.qq.com/
          matcher:
            rule: Host(`qyapi.weixin.qq.com`)
        - name: weixin-api
          addr: api.weixin.qq.com:443  # 代理 https://api.weixin.qq.com/
          matcher:
            rule: Host(`api.weixin.qq.com`)
        - name: weixin-api
          addr: weixin.qq.com:443  # 代理 https://weixin.qq.com/
          matcher:
            rule: Host(`weixin.qq.com`)

在同一个浏览器访问 https://api.weixin.qq.com/与 https://qyapi.weixin.qq.com/的时候,10多秒过后再次访问 https://api.weixin.qq.com/ 页面会提示【403 Forbidden】,在打开一个新的浏览器又能正常访问。

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant