Note that there are some explanatory texts on larger screens.

plurals
  1. POI would like a proxy server that "forwards" to two development servers
    primarykey
    data
    text
    <p><strong>Summary:</strong></p> <p>All development is on my local machine. I have two development servers running on my machine. I would like to use these development servers as if they were one. What is the simplest way to do this?</p> <p><strong>Details</strong></p> <p>I have two development servers. One server is the <a href="http://sproutcore.com" rel="nofollow">Sproutcore</a> development server (holds the application, css, images, whatever). The other server is the <a href="http://code.google.com/appengine/" rel="nofollow">App Engine</a> development server (holds the data). The app engine server has a finite number of ways that it can be accessed. Both of these development servers are running on separate ports on my machine.</p> <p>Lets say I have a regular expression called X that specifies all the url paths that can be used to access the app engine server.</p> <p>I would like a proxy server that will forward all http request paths matching X to the App Engine server, and all non matching paths to the Sproutcore server.</p> <blockquote> <p>Example:</p> <p>If my proxy server is <em>localhost:8080</em></p> <p>And my app engine server is <em>localhost:8081</em></p> <p>And my sproutcore server is <em>localhost:8082</em></p> <p>And I have a regular expression that matches "/dogs/_the_dogs_id" (where _the_dogs_id is a integer)</p> </blockquote> <p>If I make a request of <em>localhost:8080/js/application.js</em> I would expect that to go to the sproutcore server (because it does <strong>not</strong> match the regular expression)</p> <p>If I make a request of <em>localhost:8080/dogs/7</em> I would expect that to go to the app engine server (because it does match the regular expression)</p> <p>As near as my (the client) request is concerned, I am only asking localhost:8080 for all these resources. The proxy server is silently forwarding them to the correct destination. Preserving the request type, the data, the headers, etc. I just need it to forward it based on the url request path.</p> <p>Is there any simple way to set up such a proxy server? It would be immensly useful for web development.</p> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload