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

Wordpress behind reverse proxy

Our organization is remaking it's site. Someone had set up new site on new server. It can be accessed after putting an entry in /etc/hosts. And works perfectly when accessed this way. But since most of the people involved, are not good with…
lynx
  • 81
  • 1
  • 5
7
votes
1 answer

Getting "Too many redirects" error with nginx rewrite rule

I am trying to rewrite the domain url that targets my site such that all domain names are rewritten to www.example.com and have the following config: mysite block server { listen 80 default_server; listen [::]:80…
Dark Star1
  • 1,385
  • 7
  • 22
  • 37
7
votes
3 answers

Getting a chunked request through nginx

First some background: We have an embedded device that uploads a lot of small events to a web server. Chunked encoding is used to post this information. Every event is send as a seperate chunk, so the webserver (node.js) can react immediately to the…
Sunib
  • 173
  • 1
  • 1
  • 4
7
votes
3 answers

nginx with real_ip -- log both client remote_addr and proxies address

I have an nginx instance set up behind multiple load balancing proxies, and I am using real_ip to get the clients IP address in remote_addr for processing by my Python application. However in my logs I would like to log the proxy server that…
X-Istence
  • 752
  • 1
  • 8
  • 18
7
votes
2 answers

reverse proxy that caches post requests

I understand that varnish caches "GET" and "HEAD" requests by default. My backend servers fail when I do a get request that is too long, so I made them respond to POST instead of GET. This works great, but I need a reverse proxy which can be…
nurettin
  • 378
  • 2
  • 10
7
votes
1 answer

Reverse Proxy on Tomcat

I have a Tomcat application. I now want reverse proxy some of the pages to a different server listening on a different port. On a regular apache server, I would do the following. ProxyPass /dir1 http://localhost:1234/dir1 ProxyPassReverse /dir1…
user93353
  • 287
  • 1
  • 6
  • 17
7
votes
2 answers

Nginx to apache reverse proxy, instruct use of unix sockets

My Nginx reverse proxy works on the same machine as the webserver(apache) as follows server { server_name site.net; location / { proxy_pass http://localhost:82; proxy_set_header Host $host; …
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
7
votes
3 answers

Nginx reverse cache 301 redirects (permanent)

Is it possible to have Nginx cache all 301 redirect requests for proxy_pass? For example: Request #1: Client A requests /some/path -> sent to proxy_pass -> results in 301 redirect to /some/other/path -> nginx caches this response since it's a 301…
Kendall Hopkins
  • 403
  • 1
  • 5
  • 11
7
votes
1 answer

How to use nginx as reverse proxy with multiple IPs and SSL?

I would like to setup nginx reverse proxy with multiple domains and an IP for each of them to use different SSL Certs. I run Ubuntu as OS which is installed on a KVM/Qemu VM. As I understand nginx, it should be able serve one domain (and the…
dishix
7
votes
2 answers

nginx proxy_cache: limit parallel requests to a backend

I am using nginx as a reverse proxy to my backend(s). Configuration is pretty basic, e.g. the core is just: upstream myservice { server 127.0.0.1:80; server 123.123.123.123:80; } location / { proxy_pass http://myservice; …
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
7
votes
1 answer

Solution for Reverse Proxying onto URLs that are not amenable to being relocated to a subdirectory

Short Story Gah! I wish the developers who did admin interfaces would expose a "webroot=/myAppAppearsHere" option, or make all links relative. Long Story I have an admin portal for a customer that is basically an apache mod_auth login and then a…
Tom
  • 11,176
  • 5
  • 41
  • 63
7
votes
1 answer

Nginx, redirecting a location block to another

For uri's starting with /c/ , I want to do a memcached key test, and return the key's value if exists. If there is no key, it should pass it to proxy. I do it with this directive: location ^~ /c/ { set $memcached_key "prefix:$request_uri"; …
Umut Benzer
  • 173
  • 1
  • 6
7
votes
1 answer

Apache ProxyPass only if from a Subdomain

I have two servers, both running Apache. Server 1 and 2 are on the same Public IP address. Server 1 has a Network IP of 192.168.1.101 Server 2 has a Network IP of 192.168.1.102 example.com goes to Server 1. That is exactly what I want. I would like…
Yoshiyahu
  • 195
  • 1
  • 1
  • 5
7
votes
1 answer

Issues with ProxyPass and ProxyPassReverse when proxying to localhost and a different TCP port

I am attempting to use ProxyPass and ProxyPassReverse to proxy requests through Apache to another server instance that is bound to the localhost on a different TCP port that the Vhost exists (VHost is bound to :80, when the target is bound to…
brandeded
  • 1,845
  • 8
  • 32
  • 50
7
votes
1 answer

Can nginx listen on port 80, but send upstream to backend using SSL on 443?

For PCI compliance, my application is forced to use a secure/encrypted connection between the reverse proxy server and backend app server, whereas the connection coming into the reverse proxy is on port 80, i.e. the reverse proxy needs to act as a…
G Chuk
  • 71
  • 1
  • 1
  • 2