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

HTTP reverse proxy redirect internally

To me, this seems like a simple scenario: Client makes request to reverse proxy at server X (http://proxy.example.com) Server X forwards request to backend server Y (http://internal1.example.com:8000) Backend server Y responds with 3xx redirect to…
Justin Lewis
  • 201
  • 2
  • 6
5
votes
1 answer

Problems setting a cookie from a machine proxied by nginx

For a project of mine, I need to wire up a long chain of machines that are essentially proxying the HTTP requests for each other. It goes like this: Web client - A - B/C - D When a request is made from the browser, it first goes through a thin…
Preslav Rachev
  • 151
  • 1
  • 1
  • 4
5
votes
1 answer

Azure VM with many IPs or SSL certificates

I am looking to move our hosting environment to Azure and by doing so have created a sandpit VM to figure things out. We host around 300-400 websites in IIS and about 2% of these sites have unique, non wildcard certificates all requiring a unique…
timmah.faase
  • 233
  • 1
  • 5
5
votes
2 answers

Varnish configuration to only cache for non-logged in users

I have a Ruby on Rails application fronted by varnish+nginx. As most of the sites content is static unless you are a logged in user, I want to cache the site heavily with varnish when a user is logged out but only to cache static assets when they…
davidsmalley
  • 457
  • 1
  • 6
  • 14
5
votes
1 answer

NGINX proxy caching - cache buster variable in querystring - possible to ignore?

We have the following url we would like to proxy cache: file.php?parameter=one¶mater2=two&r=EPOCHTIMESTAMP Query string parameter "parameter" varies between requests. So does "paramater2". Query stringing parameter r is a timestamp we use to…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
5
votes
1 answer

Nginx as reverse proxy: how to properly configure gateway timeout?

We have configured Nginx as a reverse proxy to an Apache server farm, but I'm running into trouble with the gateway timeouts. Our Goal in human readable form is: "Deliver a request within one second, but if it really takes longer, deliver anyway",…
user1281376
5
votes
2 answers

What is the best way to compress backend to nginx reverse proxy data?

We are going to be running a nginx reverse proxy that will pull data from a backend via the internet. What we mean by via the internet is the backend machine will not be on a lan with the front facing reverse proxy. We were thinking it would be nice…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
5
votes
4 answers

Can nginx be an mail proxy for a backend server that does not accept cleartext logins?

Can Nginx be an mail proxy for a backend server that does not accept cleartext logins? Preferably I'd like to know what directive to include so that it will invoke STARTTLS/STLS, but communication via IMAPS or POP3S is sufficient. relevant(?)…
84104
  • 12,905
  • 6
  • 45
  • 76
5
votes
3 answers

How do I avoid "already used by another worker" warning in an Apache2 reverse proxy config?

I added server matching ProxyPass and ProxyPassReverse entries, but I was getting "already used by another worker" [warn] messages upon start up. I have a proposed solution that's good enough for me, since it appears to have cleared up the messages…
Jim Herrick
  • 114
  • 1
  • 2
  • 7
5
votes
2 answers

Good way to reverse proxy through a forward proxy

I have an app that uses HTTP to connect to a server but does not support using an HTTP proxy and I must use an HTTP proxy to get to the server. I would like to set up a reverse proxy service (it's on a Linux server) that can go through the regular…
Olson
  • 151
  • 3
5
votes
5 answers

How to proxy requests to an internal server using nginx?

I have setup a web server to view my repositories (a Gitalist instance) on http://localhost:3000 and I want to setup a proxy using nginx. I want that the request is proxied to my repository view when receiving a URI like DOMAIN/git/. My current…
eliocs
  • 197
  • 1
  • 2
  • 9
5
votes
1 answer

nginx redirects back to remote_addr IP

I am trying to setup nginx 1.0.12 as a proxy for apache 2.2.15, but faced a strange problem. And I cannot solve it for third day in a row. I have test site c-craft.info and have installed roundcube in /roundcube subdirectory. So here is the…
5
votes
1 answer

How can I protect a Tomcat webapp that's reverse proxied in an Apache2 virtual host using basic authentication?

I'm having trouble figuring out how to adding basic HTTP authentication to password-protect a development testing environment running on a production web server. Both the main site and the testing environment are virtual hosts that use AJP proxying…
5
votes
4 answers

Apache ProxyPassReverse and https

I would like to map all traffic on 80 and 443 from foo.com to an internal server: 192.168.1.101. I have a VirtualHost (Apache 2.2 on Ubuntu) setup as follows (note, I had to break up the hyperlinks below because I am a 'new user'):
Joshua Ball
  • 153
  • 1
  • 1
  • 4
5
votes
1 answer

Nginx reverse proxy: Not setting expires header

I have my static assets configured as location @upstream { proxy_pass http://localhost:82; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For …
Quintin Par
  • 4,373
  • 11
  • 49
  • 72