Questions tagged [reverse-proxy]

A reverse proxy server usually refers to an HTTP accelerator or load-balancer which proxies requests on behalf of the actual clients to one or more backend HTTP servers.

A reverse proxy server usually refers to an proxy server which proxies requests on behalf of the actual clients to one or more backend HTTP servers.

It can be used as HTTP accelerator, or load-balancer, or to give the access to LAN internal web-services to Internet users.

Wikipedia: Reverse proxy

Apache HTTP as forward and reverse proxies

5119 questions
32
votes
9 answers

Why does Jenkins complain that my reverse proxy setup is broken?

I have no idea why after Jenkins is updated to version 1.591 (Ubuntu Server 12.04), the originally correctly set up reverse proxy now becomes broken. My current setting is exactly the same as said in Jenkins wiki: ProxyPass /jenkins…
Kevin
  • 413
  • 1
  • 4
  • 7
30
votes
5 answers

Avoid nginx decoding query parameters on proxy_pass (equivalent to AllowEncodedSlashes NoDecode)

I use nginx as a load balencer in front of several tomcats. In my incoming requests, I have encoded query parameters. But when the request arrives to tomcat, parameters are decoded : incoming request to nginx: curl -i…
Jean-Philippe Caruana
  • 2,617
  • 4
  • 25
  • 47
30
votes
1 answer

The simplest possible reverse proxy

I'm looking for a way to simply set up a proxy locally that connects to a remote site. I don't want to install anything in the system proper. If I could call it with a single command-line call rather than mucking with even a single config file, that…
clacke
  • 7,688
  • 6
  • 46
  • 48
29
votes
1 answer

nginx proxy pass Node, SSL?

my nginx server is actually proxying my node backend (which listens on port 3000) with a simple: location /api/ { proxy_pass http://upstream_1; } Where upstream_1 is my node cluster defined in nginx.conf (on port 3000). I'm gonna have to add SSL…
spacenick
  • 1,171
  • 3
  • 14
  • 19
27
votes
5 answers

nginx as cache proxy not caching anything

I'm trying to cache static content which are basically inside the paths below in virtual server configuration. For some reason files are not being cached. I see several folders and files inside the cache dir but its always something like 20mb no…
Bruno Faria
  • 5,219
  • 3
  • 24
  • 27
27
votes
8 answers

Is there any way to configure nginx (or other quick reverse proxy) dynamically?

Suppose we have several identical nodes which are the application servers of some n-tier service. And suppose we use Apache ZooKeeper to keep all the config's of our distributed application. Plus we have an nginx as a load balancer and reverse proxy…
Dima
  • 547
  • 1
  • 4
  • 16
27
votes
6 answers

Cognito - Client is not enabled for OAuth2.0 flows

I've successfully set up an AWS Cognito environment that runs on Localhost following this tutorial. For the next step, I published the app to my external web server. I confirmed that the Cognito configuration (i.e. Client ID, Metadata Address,…
26
votes
4 answers

How to read response body of ReverseProxy

package main import ( "net/http" "net/http/httputil" "net/url" ) func main() { target := &url.URL{Scheme: "http", Host: "www.google.com"} proxy := httputil.NewSingleHostReverseProxy(target) http.Handle("/google", proxy) …
fannheyward
  • 18,599
  • 12
  • 71
  • 109
26
votes
4 answers

Intercepting backend 301/302 redirects (proxy_pass) and rewriting to another location block possible?

We have a couple of backends sitting behind our nginx front ends. Is it possible to intercept 301 / 302 redirects sent by these backends and have nginx handle them? We were thinging something alone the lines of: error_page 302 = @target; But I…
26
votes
1 answer

nginx reverse proxy to backend running on localhost

EDIT: It turns out that the my setup below actually works. Previously, I was getting redirections to port 36000 but it was due to some configuration settings on my backend application that was causing it. I am not entirely sure, but I believe I…
yanhan
  • 3,507
  • 3
  • 28
  • 38
25
votes
2 answers

Code to get a Java servlet to act as a proxy?

I have two Java web applications that have a single servlet that gets mapped to a specific URL: red.war/ WEB-INF/classes com.me.myorg.red.RedServlet (maps to http://red.example.com/doStuff) blue.war/ WEB-INF/classes …
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
25
votes
5 answers

How do I use Rack::Proxy within Rails to proxy requests to a specific path to another app

I found this great blog post on how to use Rack::Proxy as a separate proxy app. The article explains how he uses Rack::Proxy to proxy requests to http://localhost:3000 to an app on port 3001 and requests to http://localhost:3000/api to an app on…
John
  • 9,254
  • 12
  • 54
  • 75
25
votes
2 answers

nginx 1.2.0 - socket.io - HTTP/1.1 - Proxy websocket connections

i would like to replace my node-http-proxy module with nginx proxy_pass module. Is it possible with new released nginx version, as i have read, that it supports HTTP/1.1 out of the box. I saw some threads struggeling with that problem, that…
ayk
  • 1,330
  • 2
  • 15
  • 24
24
votes
4 answers

How to properly set JSESSIONID cookie path behind reverse proxy

My web app is running in Tomcat at http://localhost:8080/example.com/ but it is being reverse proxied from Apache that is serving up http://example.com/ on port 80. My web app looks at the request.getHeader("x-forwarded-host") header to know that…
Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
24
votes
2 answers

nginx and Perl: FastCGI vs reverse proxy (PSGI/Starman)

A very popular choice for running Perl web applications these days seems to be behind a nginx webserver proxying requests to either a FastCGI daemon or a PSGI enabled webserver (e.g. Starman). There have been lots of question as to why one would do…
aaa90210
  • 11,295
  • 13
  • 51
  • 88