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

HTTPS下,Auto Switch + 模式匹配会挂掉 #95

Open
ottomao opened this issue Sep 14, 2016 · 0 comments
Open

HTTPS下,Auto Switch + 模式匹配会挂掉 #95

ottomao opened this issue Sep 14, 2016 · 0 comments

Comments

@ottomao
Copy link

ottomao commented Sep 14, 2016

SwitchOmega里,https不能配置url通配符,只能配置域名通配符。
如果我想转发部分目录的请求,剩下一部分送到真实的服务器,就做不到。

比如我配置了:
'/g/h5-lib/nebulamng-fe/0.0.1/(.*)': 'http://localhost:8001/'

在switchOmega里设置 *.test.xxx.net ,这时候请求 a.test.xxx.net/hello.js 就会报错。

按AnyProxy的玩儿法,可以考虑这么做:匹配规则的,返回规则内容,不匹配的,释放到线上真实服务器即可。

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