2

I have a mobile app that needs to communicate with a third-party server over an HTTP API. But the third-party server can be accessed only from an approved IP addresses, meaning that I need to put my server (whose IP has been approved) between the app and the third-party server.

What's the simplest way to set up the server? I basically need my server to simply forward HTTP requests to a different server.

1

1 Answer 1

3

To start, I would set up Nginx as a reverse proxy to the third-party server. You can read about how that works here: http://nginx.com/resources/admin-guide/reverse-proxy/, an example setup might look like:

server {

  listen 80;
  server_name example-proxy-domain.com;

  location /some/path/ {
      proxy_pass http://www.example-third-party-domain.com/link/;
  }
}
1
  • Did almost exactly this, works great.
    – fhucho
    Dec 18, 2014 at 22:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .