Questions tagged [reverse-proxy]

A reverse proxy is a type of proxy server that fetches resources from a specific defined set of servers for a client. It is used in cases when there is an advantage to not exposing the web server with the content directly whether it be for security reasons or because of a lack of available public IP addresses.

A reverse proxy is a type of server. Unlike a traditional "forward proxy" server, a reverse proxy fetches resources from a specific defined set of servers for a client. The Apache HTTPD server's mod_proxy module is a popular example of software that can be used as a reverse proxy.

A reverse proxy can be used in cases when there is an advantage to not exposing the server with the content directly to the Internet, whether it be for security reasons or because of a lack of available public IP addresses.

3190 questions
10
votes
2 answers

IIS does not set X-FORWARDED-HOST

I have an IIS server [on WinServer 2016] that acts as a reverse proxy for a few Kestrel web servers. Right now I am trying to setup IIS to forward all X-Forwarded-* headers. For X-Forwarded-For and X-Forwarded-Proto headers everything works fine but…
Volodymyr Usarskyy
  • 201
  • 1
  • 2
  • 5
10
votes
3 answers

nginx reverse proxy multiple locations

I want to make a reverse proxy for multiple applications. Something like this: https://proxyip/app1 -> https://10.10.0.1/ https://proxyip/app2 -> https://10.10.0.2/ etc. Currently, my config is: server { listen 443 ssl; server_name _; …
Sergei B.
  • 111
  • 1
  • 1
  • 4
10
votes
1 answer

Nginx as a reverse proxy serving 301's

I have little experience with NGINX. I am trying to use it as a reverse proxy for a few docker containers running node. The goal is all requests will be funneled through NGINX. Based on routes(url path), a certain route domain.com/graphql will…
jackncoke
  • 223
  • 1
  • 3
  • 9
10
votes
3 answers

"No protocol handler valid for the URL" with httpd mod_proxy_balancer

I'm trying to set up failover for a reverse-proxied server with a localhost static copy of resources that would usually be served by a content management system. I've used wget to grab a static copy of the dynamic site for failover purposes. I've…
Christopher Schultz
  • 1,105
  • 2
  • 12
  • 22
10
votes
2 answers

Nginx Reverse Proxy Gzip to Client

I have an IIS 6.0 web server exposed to the internet which isn't performing Gzipping reliably. I know it's old, but it's all i have to work with for this one instance. What i want to do is put Nginx (or similar) infront of IIS as a reverse proxy and…
Dean Thomas
  • 211
  • 1
  • 2
  • 4
10
votes
3 answers

Nginx reverse proxy to another nginx server serving static files

I have an Nginx server hosting a web app which works fine when directly accessed. Its config is below server { listen 8000 default_server; listen [::]:8000 default_server ipv6only=on; root /data/www/ ; server_name server1.com; …
sanre6
  • 201
  • 1
  • 2
  • 4
10
votes
1 answer

Nginx ignore query string for caching certain files

I know my setup is a bit crazy, but whatever.... I set up Nginx on Openshift to cache map tiles (for a map viewer, you can guess the purpose, :-) ) that are served from my home network, which has limited bandwidth (stupid wireless connections!).…
Andrew Sun
  • 201
  • 1
  • 2
  • 6
10
votes
2 answers

Modify data being proxied by nginx on the fly

I have an nginx setup that receives requests from external hosts and proxies them to an internal server. The config looks something like this: server { listen 10.0.0.66:443; server_name my.example.com; root…
0x6A75616E
  • 661
  • 3
  • 10
  • 24
10
votes
6 answers

SSH Tunnel for Remote Desktop via Intermediary Server Part II

I asked previously how to configure 2 SSH tunnels using an intermediary server in order to run Remote Desktop through them and I managed to make it work. Now, I'm trying to do the same, using the same machines, but in reverse order. Here's the…
Mihai Todor
  • 222
  • 1
  • 3
  • 13
10
votes
1 answer

How can I forward requests from my web server?

This is a Canonical Question about reverse proxies, how they work and how they are configured. How can I serve requests from a service on a different port or from a different server with the same webserver and distinguish it via the URL?
Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89
9
votes
2 answers

Is it possible to configure Nginx to accept requests both with and without proxy protocol to the same URL?

I have a set of applications behind a proxy server which forwards request appropriately and uses the proxy protocol to preserve the request's origin data. The apps also make requests amongst each other so I want them to accept requests with and…
Calum Halpin
  • 207
  • 1
  • 8
9
votes
1 answer

What exactly is a "transparent reverse proxy"?

I've been running some services as docker containers on a DigitalOcean droplet for a few years now, and recently I figured it was time to update one of them to the latest version (the service in question is ghost blogging platform). Previously, my…
ROODAY
  • 215
  • 2
  • 5
9
votes
1 answer

Is it worthwhile to setup HTTP 2 reverse proxy in front of HTTP 1 server?

Say I setup Nginx as a reverse proxy in front of IIS and enable HTTP/2 support on Nginx for browsers. Would I see any benefits?
Kugel
  • 213
  • 2
  • 7
9
votes
2 answers

nginx - connect() failed upstream under load testing

I've been doing some load testing with wrk of my nginx reverse proxy -> my web app setup and I noticed that when I get to 1000+ concurrent connections, nginx starts returning 502s and the following error message: 2015/04/17 20:45:26 [crit] 6068#0:…
Alexandr Kurilin
  • 566
  • 1
  • 8
  • 22
9
votes
2 answers

Apache 2.4 Proxy for External, Redirect for Internal

I am attempting to setup a reverse proxy to allow only a few select ip ranges to proxy to an internal host, while I would like anyone else not within the ip ranges to redirect to our internal named host. In this setup, the webservice will work…
Brian
  • 310
  • 2
  • 9