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
9
votes
1 answer

How to pass a request from one apache server to another

I have two Apache Servers with mod_proxy enabled. I want to know how to "pass the request" from "Apache Server A" to "Apache Server B" using the same port (80). In "server A" with internal ip: 192.168.0.5 I have configured DNS and I am also using it…
maxtorzito
  • 223
  • 1
  • 3
  • 6
9
votes
4 answers

multiple sub_filter rules for a reverse proxy on nginx?

with no evil plans I am trying to mirror a site under other domain, while changing a few strings on the fly. I set up nginx on a new host to serve as a RP to the master site. This allows to set one rule of replacement: sub_filter Originalstring…
Sergiks
  • 249
  • 3
  • 5
  • 11
9
votes
6 answers

Apache reverse proxy error page when proxied server is down

I am using Apache2 as a reverse proxy for tomcat, my configuration being something like: ProxyRequests Off ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ My question is: can I configure Apache to show up a…
Overflow
  • 193
  • 1
  • 1
  • 5
9
votes
3 answers

Apache reverse proxy access control

I have an Apache reverse proxy that is currently reverse proxying for a few sites. However i am now going to be adding a new site (lets call it newsite.com) that should only be accessible by certain IP's. Is this doable using Apache as a reverse…
Steven
8
votes
3 answers

How to tune TCP for high-frequency connections between two nodes

I've been scratching my head for the past few days, trying to come up with a solution for the following problem: In our data center we have a F5 running on BigIP hardware that acts as a single ingress point for HTTPS requests from client machines in…
Christoph
  • 203
  • 1
  • 7
8
votes
2 answers

Which ssl certificates go where on an reverse proxy? - nginx

Need clarification for upstream SSL on an nginx reverse proxy server I've been reading the nginx docs regarding reverse proxy and securing ssl connections to upstream servers but I'm still confused about which ssl certificates go where. Many of the…
Altimus Prime
  • 364
  • 2
  • 7
  • 22
8
votes
2 answers

How to setup Traefik for HA? Need a reverse-proxy in front of Traefik?

I am trying to setup Traefik on a production site, and I'm struggling with some high availability issues. I think we still need a reverse-proxy in front of the Traefik cluster. Here are the potential setups that I've considered, and why the…
Mark Grimes
  • 654
  • 1
  • 6
  • 8
8
votes
1 answer

Apache reverse proxy to docker container

I have a website running on a docker container, and I've created a VirtualHost on the host's apache that is doing a reverse proxy to the container (on host's 8280 port). So I have: ServerName www.example.com …
Jaldazabal
  • 111
  • 1
  • 1
  • 5
8
votes
1 answer

Should we use Apache's HTTP2?

I wanted to use HTTP2 with Apache 2.4.16 (probably need to upgrade to 2.4.17) and stumbled across this comment on the official Apache Page. Warning This module is experimental. Its behaviors, directives, and defaults are subject to more change from…
David Garus
  • 83
  • 1
  • 5
8
votes
1 answer

ProxyPass a WebSocket connection to a UNIX socket

In Apache 2.4 you can reverse proxy an HTTP connection to a local Unix socket with: [1] ProxyPass unix:/path/to/app.sock|http://example.com/app/name You can reverse proxy a WebSocket connection to a local TCP socket with: [2] ProxyPass…
Kijewski
  • 191
  • 1
  • 8
8
votes
1 answer

Nginx WebSocket reverse proxy keeps return 200 instead of 101

I'm currently trying to have a hack.chat on my personal server working. Long story short, it consists of two servers. The first is a simple httpd server serving javascript and CSS. The second one, the chat system, is a node.js server which the…
axellink
  • 83
  • 1
  • 7
8
votes
2 answers

HAProxy switch to backup on 500 errors and/or server down

I'm setting up an HAProxy in front of only 2 backend servers, with a particular configuration: any request should go to server A; but, if server A returns a 5xx error code, all request should go to a backup server B. When A returns "up", all the…
8
votes
7 answers

Why would I use Squid?

I have Googled, searched StackOverflow and here. Still I can not fully understand what or why someone would use Squid. All I can find out so far is that it is some sort of cache that can make it less work that your server (i.e. Apache) has to do. So…
JasonDavis
  • 2,658
  • 6
  • 25
  • 32
8
votes
5 answers

How do I smoothly migrate a web server's DNS from one IP address to another?

I currently have a domain name registered for a Linux/Apache server that I am going to replace with another on a new IP address. Migrating the data will be relatively quick and a 5 minute disruption during that process is acceptable. The DNS…
Tom
  • 2,652
  • 1
  • 20
  • 12
8
votes
4 answers

Nginx reverse proxy without SSL termination

I'm trying to set up Microsoft Remote Desktop Web Services on a Windows 2k12 server. This is fully functional, however I would like (need to) put a reverse proxy (Nginx) in front of it. I only have 1 external ip (fixed) and I am hosting multiple…
Goez
  • 1,838
  • 1
  • 11
  • 15