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
42
votes
3 answers

What tools are available on Windows to simulate/emulate network issues?

I am looking for tools for Windows that can act as a reverse-proxy in front of a server to introduce various networking issues like jitter, delays, or packet loss. My preference is a software solution that will work on Windows. Httpd mod_proxy…
Scott Markwell
  • 742
  • 1
  • 6
  • 13
41
votes
3 answers

nginx as reverse proxy with upstream SSL

I'm building a proxy for an internal API to allow clients to connect without having to have the self-signed certificates installed. Clients (built, owned and used only internally) will connect over SSL to the nginx box, where I'm using XSendfile to…
simonmaddox
  • 560
  • 1
  • 4
  • 7
40
votes
4 answers

Forward Custom Header from Nginx Reverse Proxy

I have an nginx web server acting as a reverse proxy to forward requests on to Apache for additional handling (I'm begging you not to ask why). I have a request to which I'm trying to attach a custom header and I'd like for nginx to forward that…
Rob Wilkerson
  • 1,465
  • 4
  • 17
  • 25
39
votes
3 answers

How to rewrite the domain part of Set-Cookie in a nginx reverse proxy?

I have a simple nginx reverse proxy: server { server_name external.domain.com; location / { proxy_pass http://backend.int/; } } The problem is that Set-Cookie response headers contain ;Domain=backend.int, because the backend does not know…
Tobia
  • 1,183
  • 1
  • 12
  • 20
38
votes
6 answers

What is a typical method to scale out a software load balancer?

I often see web app architectures with a SLB / reverse-proxy in front of a bunch of app servers. What happens when the number of connections to the SLB requires too many resources for a single SLB to handle effectively? For a concrete yet…
z8000
  • 792
  • 1
  • 7
  • 15
37
votes
2 answers

How to reverse proxy to different places depending on subdomain in Nginx?

I have multiple subdomains, all pointing to one machine, and one IP address. On this machine, I want to have nginx acting as a reverse proxy, and depending on which subdomain was used to access the machine, I want it to reverse proxy to a different…
markasoftware
  • 489
  • 1
  • 5
  • 7
36
votes
3 answers

Using Https between Apache Loadbalancer and backends

I am using an apache (2.4) server configured as loadbalancer in front of 2 apache servers. It works fine when I use http connections between loadbalancer and backends, however using https does not work. The configuration of the…
user3240383
  • 361
  • 1
  • 3
  • 5
34
votes
5 answers

How to handle relative urls correctly with a nginx reverse proxy

Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet. My NGINX configuration follows the guidelines and looks something like this: server { listen 80; server_name…
a.barbieri
  • 483
  • 1
  • 5
  • 7
33
votes
2 answers

Modify HTML pages returned by nginx reverse proxy

I have a reverse proxy setup for access to a third party application located inside a intranet from the internet. Let's say this application is on the URL: https://internalserver:8080/ (reachable only from the intranet) and the proxy is…
PCJ
  • 433
  • 1
  • 4
  • 5
33
votes
4 answers

What are the Differences between HAProxy and Ngnix in reverse proxy mode?

What are the differences between HAProxy and Nginx when it comes to their abilities as a reverse proxy?
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
32
votes
2 answers

Nginx Config: Front-End Reverse Proxy to Another Port

I have a small web server that serves requests on port 5010 rather than 80. I would like to use nginx as a front end proxy to receive requests on port 80 and then let those requests be handle by port 5010. I have installed nginx successfully and it…
Ted Karmel
  • 423
  • 1
  • 4
  • 4
30
votes
2 answers

Nginx: How To Completely Disable Request Body Buffering

I'm trying to set up Madsonic on my Ubuntu box and have Nginx run in front of it. Problem is, I keep getting this warning when I try to upload stuff through the web interface: 31115#0: *14 a client request body is buffered to a temporary file This…
rad
  • 421
  • 1
  • 4
  • 7
28
votes
6 answers

What is a Reverse Proxy?

I know what a proxy is, but I'm not sure what a reverse proxy is. It seems to me that it's probably akin to a load balancer. Is that correct?
belgariontheking
  • 512
  • 1
  • 5
  • 9
25
votes
2 answers

Serving multiple proxy endpoints under location in Nginx

I have a couple of API endpoints that I want to serve from under a single location of /api with subpaths going to different endpoints. Specifically, I want webdis to be available at /api and a proprietary API available at /api/mypath. I'm not…
hamstar
  • 745
  • 3
  • 9
  • 20
25
votes
4 answers

Can a Reverse Proxy use SNI with SSL pass through?

I need to serve several applications over https using one external ip address. The ssl certificates should not be managed on the reverse proxy. They are installed on the application servers. Can a reverse proxy be configured to use SNI and pass ssl…
user319862
  • 777
  • 2
  • 8
  • 20