Comments (3)
Indeed, that's exactly what it does (resolve the name when you start it). Not familiar enough with pow to know the behavior you want... or if it even makes sense in the context of em-proxy.
from em-proxy.
I have a couple rack apps setup locally with pow
and am on my way to build an API proxy. Say there are app1.foo.dev
, app2.foo.dev
and apis.foo.dev
. I would want apis.foo.dev/app1
to route requests to app1 and so on for app2. Is it a good use case for em-proxy
?
In production, I can totally see this approach works since em-proxy
will bind to app's IP and each app will have its own IP on an individual machine. But in development with pow, I met the problem as I mentioned.
Thanks,
Owen
from em-proxy.
Before any TCP connection can be made, we resolve the hostname to the IP address. When the request is routed, it'll connect to 127.0.0.1. If pow is smart enough to look at the headers and your routing paths and then do the right thing.. then it will work.
em-proxy is an IP proxy, it doesn't understand anything about HTTP or any other protocols. In theory, you can make it be aware of higher protocols, but that will require custom code.
from em-proxy.
Related Issues (20)
- NoMethodError: undefined method `on_headers_complete=' for #<Http::NativeParser HOT 5
- Balancing sample doesn't seem to give a new server for every request HOT 2
- Early binding for proxy port HOT 4
- Spec: duplex TCP traffic to two backends google & yahoo is hanging HOT 2
- Add support for proxying unix domain sockets (JRuby) HOT 6
- Backend selection based on sub-domain HOT 1
- No eventmachine 1.0 support? HOT 4
- On SIGINT foreman throws an error HOT 1
- Skip proxying and just send a response HOT 1
- Select backend on request data HOT 2
- Error HOT 1
- http_proxy.rb -- invalid request URI HOT 3
- http_proxy.rb -- breaking proxy request by adding/duplicating data HOT 6
- http_proxy.rb -- breaking proxy request by adding/duplicating data #52 HOT 2
- Can not re-open issue #52
- Missing licence in rubygems.org
- Missing LICENSE file in rubygem HOT 1
- Syntax error in examples/http_proxy.rb HOT 1
- 2 network HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from em-proxy.