Git Product home page Git Product logo

Comments (3)

igrigorik avatar igrigorik commented on August 28, 2024

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.

owenthereal avatar owenthereal commented on August 28, 2024

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.

igrigorik avatar igrigorik commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.