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
5
votes
5 answers

Nginx, Varnish, ESI - Will that work?

I've serveral backends (one is nginx+passenger) to combine via ESI. Since I don't want to go without gzip/deflate and SSL varnish can't do the job out of the box. So I thought about the following…
Roland
  • 369
  • 3
  • 9
5
votes
1 answer

Setting up IIS reverse proxy to preserve host headers

I have an IIS server that is hosting a number of sites and apis. These sites include Confluence and Jira instances. These products actually run their own web servers so the Application Request Routing and Url Rewrite modules are being used to…
Chris Becke
  • 161
  • 1
  • 5
5
votes
0 answers

nginx: resolver does not refresh after dns update

We've had an issue today with the nginx resolver in an AWS environment. According to the nginx log files, nginx did not resolve to the right servers, after the DNS record changes. The DNS originally resolved: webservers.ourservers.local A…
5
votes
2 answers

How does a load balancer get around the 64k port limit?

When a request comes in, it gets rerouted to one of several available servers for the request. But there's only 64k ports available so at any given time there can only be 64k outgoing requests max. So how can some websites serve millions of…
Jayson Tatum
  • 51
  • 1
  • 3
5
votes
2 answers

111: Connection refused nginx proxy for Docker containers

CentOS 7 I have a simple Nginx proxy Docker container listening on port 80. Here is the Dockerfile: FROM centos:7 MAINTAINER Brian Ogden # Not currently being used but may come in handy ARG ENVIRONMENT RUN yum -y update && \ yum clean all &&…
Brian
  • 321
  • 3
  • 5
  • 15
5
votes
1 answer

Apache2.4 ProxyPass exception inside Location block not working

While trying to get the Let's Encrypt Certbot to work on a local server that hosts reverse-proxied content, I am unable to get the local exception working inside a Location block. httpd.conf snippet: SSLProxyEngine on ProxyPass…
Liam Dennehy
  • 176
  • 6
5
votes
1 answer

OpenBSD: How to use `relayd` and `httpd` for redirecting subdomain requests

Situation I created the following setup on OpenBSD: So I have my OpenBSD server on 192.168.1.250 redirecting all http-requests to the host-vm on 192.168.30.2. The host-vm itself operates nginx for redirecting subdomain-requests like so: ## the…
Jan
  • 107
  • 1
  • 8
5
votes
1 answer

NGINX double reverse proxy

I am experiencing some strange problems with my reverse proxy. My setup looks like this: setup Now, hosts inside my internal network can reach the app running on localhost:3000 on server srv1.my.domain.org, so I know the config is working. But as…
ChaChaPoly
  • 243
  • 1
  • 3
  • 16
5
votes
1 answer

What AWS service to avoid CORS issues with S3 static content and aws backends

Introduction I've got the following architecture deployed on Amazon AWS. The goal is to expose a web application (single page application) acting as an entrypoint at https://app.acmecorp.com. This is a single page application that : serves static…
ddewaele
  • 333
  • 1
  • 4
  • 12
5
votes
1 answer

reverse proxy nginx bad gateway

We have a reverse proxy server on nginx for a bamboo server but it gives a 502 bad gateway but accessible from reverse proxy server(both centos). nginx.conf: server { listen 80; server_name bamboo.test.foo.com; access_log …
Joske
  • 51
  • 1
  • 2
5
votes
1 answer

NGINX: Send a copy of requests to another upstream

Our team has developed an analytic app which records and analyses all incoming (not dropped) requests. To that extent, I have to send a copy of all requests to another upstream in my reverse-proxy solution. Is it possible with NGINX alone? Or is…
Tala
  • 267
  • 1
  • 3
  • 9
5
votes
1 answer

How to create subdomains using nginx and proxy_pass for each

I currently have nginx setup for my server at my.server.com. Using the current configuration I access different applications using http://my.server.com/app1 or http://my.server.com/app2. I have an apps.conf placed in /etc/nginx/sites-enabled/ this…
Anthony
  • 253
  • 1
  • 7
  • 10
5
votes
1 answer

Possibility of rewriting response bodies in different webservers (nginx, apache, iis, etc.)

I'm doing a personal research on the differences between commonly used web servers. I'm struggling to find clear answers when it comes to particular features and most importantly for me: ability to rewrite response body on the fly. Scenario: a web…
5
votes
1 answer

Passing Authorization Basic Headers Along in Proxy

I am currently trying to get a reverse/forward proxy to pass along the authorization headers to the target server. How would I go abou this? I have already looked at the below sources, and one of the comments states that this only works for…
HSchmale
  • 223
  • 2
  • 12
5
votes
1 answer

Nginx reverse proxy with dynamic port forwarding

I'm setting up a reverse proxy on Nginx. I need it to listen to multiple ports. I then would like to hit the exact same port on the backend server. Like this: http://frontendserver:9000 -> http://backendserver:9000. Here's what I thought would…
stuff22
  • 151
  • 1
  • 3