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
8
votes
2 answers

How to invalidate nginx reverse proxy cache in front of other nginx servers?

I'm running a Proxmox server on a single IP address, that will dispatch HTTP requests to containers depending on the requested host. I am using nginx on the Proxmox side to listen to HTTP requests and I am using the proxy_pass directive in my…
Olivier Lance
  • 183
  • 1
  • 1
  • 6
8
votes
2 answers

Setting up a reverse proxy to cache images

I wrote a quick Python server to serve resampled images. For example, a URL might look something like http://images.domain.com/resample/100x100/9f362e1994264321.jpg. Being that resampling images is expensive, a caching layer is necessary. It…
Theron Luhn
  • 325
  • 2
  • 3
  • 11
8
votes
1 answer

Apache: redirect specific URL to a local server on different port

This seems straightforward, but I can't make it work. I have a pretty trivial webserver that only needs to do two things: example.com/status.html returns a local file (this works) example.com/atom redirects the contents of the firewalled server…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
8
votes
1 answer

What does "acl cdn_name hdr_beg(host) -i foor.bar.com" mean in HAProxy's configuration?

I've recently taken over an environment using HAProxy, and I'm attempting to learn the config and what it all means, but I'm finding some aspects of it are not clear. I think the above means that if host header begins with "foo.bar.com" then use…
8
votes
5 answers

Which reverse-proxies support HTTP/1.1 ETag and If-None-Match headers?

I'm developing a caching system for an ecommerce platform that will use a reverse proxy for caching. I plan to handle invalidation by using proper HTTP/1.1 headers. That is, I will set an ETag on first generation of the content and cache that ETag…
ColinM
  • 701
  • 8
  • 19
8
votes
1 answer

ProxyPass entire domain to Tomcat, including root

I have configured my VirtualHost example.com to proxy all requests to a Tomcat server ProxyPass / http://localhost:8088/app ProxyPassReverse / http://localhost:8088/app This works fine for URLs like example.com/page, but for example.com and…
Bart van Heukelom
  • 1,199
  • 6
  • 21
  • 41
7
votes
6 answers

How many reverse proxies (nginx, haproxy) is too many?

I'm setting up a HA (high availability) cluster using nginx, haproxy & apache. I've been reading great things about nginx and haproxy. People tend to choose one or the other but I like both. Haproxy is more flexible for load balancing than nginx's…
Alysum
7
votes
2 answers

Nginx: reverse proxy passing client IP to the server

On an existing nginx reverse proxy, I need to pass the client IP to a server (from nginx to the frontend served in NG-Engine, and from this to the backend), I tried a lot of sites, but the server is just receiving 127.0.0.1. Extra info (added after…
xCovelus
  • 200
  • 1
  • 1
  • 7
7
votes
3 answers

Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

My proxy cache path is set to a very high size proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=staticfilecache:180m max_size=700m; and the size used is only sudo du -sh * 14M cache 4.0K proxy Proxy cache valid is set…
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
7
votes
1 answer

HTTP server through reverse ssh tunneling

I have linux-based device (let's say a Raspberry Pi) that hosts a HTTP server. This device regularly changes WiFi access point and is often not publicly accessible due to NAT and/or firewall. I want to setup a reverse ssh tunnel using a publicly…
DurandA
  • 173
  • 1
  • 1
  • 5
7
votes
1 answer

Nginx config for Restful API behind proxy

I am trying to move my node proxy from port 8080 to 80 and hitting walls. I want my RESTful API to be behind a nginx reverse-proxy listening on port 80 on location /api/path instead. (Port 8080 wasn't accessible for some enterprise users behind…
Dominik
  • 315
  • 2
  • 5
  • 13
7
votes
2 answers

NGINX is giving 404 errors on all but the HTML pages

I setup nginx as a reverse proxy in a docker container to link to sites outside of the container. I have a vhost config setup as follows (I tried adding the ^~ before the location for home-assistant): server { # simple reverse-proxy listen …
Randy
  • 189
  • 1
  • 2
  • 7
7
votes
1 answer

Nginx location match working only when matching root

I'm trying to configure nginx so I can have two locations. One for my node API and the other for my Jenkins CI. http://my_ip/api should point to my node server and http://my_ip/jenkins should point to my jenkins CI I have this server block. server…
limoragni
  • 291
  • 2
  • 7
7
votes
2 answers

What is a correct way(s) to allow login to an IIS site through a reverse proxy?

I have an nginx reverse proxy, and I'm trying to get an IIS website with login to work behind it. I've found this question asked several times, but each answer appears to be different, and some of the problems deviate a bit from the problem I'm…
trueCamelType
  • 1,086
  • 5
  • 20
  • 42
7
votes
1 answer

Nginx as a load balancer. Frequent upstream timed out (110: Connection timed out) while connecting to upstream

I'm trying to use nginx on a centos 7 virtual machine as a load balancer to replace an aging Coyote Point hardware device. However in one of our webapps we're seeing frequent and continual upstream timeout errors in the logs and clients are…
Jchieppa
  • 168
  • 4
  • 10