jifeng / easyproxy Goto Github PK
View Code? Open in Web Editor NEW基于http的反向代理
基于http的反向代理
host: 'work1.com', prefix: '/'
生效url:
www.work1.com/
www.work2.com/cwf/
host: 'work1.com', prefix: '/cwf/'
生效url:
www.work1.com/cwf/
无效url
www.work1.com
www.work1.com/cwfs
使用的支持模块:qws
not ok 1 listener proxy match defualt port
TypeError: Cannot read property 'www.xxxxx.com' of undefined
当easyproxy被初始化后,map没有被初始化,造成报错
现在easyproxy的一个问题是
现在一个请求过来,是全遍历整个应用列表,性能上存在问题
解决方案是先强匹配host,接下来再照prefix
之前的默认规则: 返回第一个匹配的
其实可以有多个:
prefix: '/:app/show'
当'http://localhost/cdo/show' 时,是可以匹配的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.