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

does varnish config include statement support wildcards?

After googling and briefly browsing varnish docs, I could not find a reference to this. Can I do for example the following in varnish vcl? include sites-enabled/*.vcl
4
votes
2 answers

nginx proxy_cache: limit parallel requests for the same URL

We're using nginx as a reverse proxy to get files from upstream servers. The files are not dynamic – at least not on a per request basis – and are (sometimes) behind high latency. I would like to limit the request for the same URL to exactly 1. An…
Gert
  • 198
  • 3
  • 12
4
votes
1 answer

Imap proxy with message cache

Does an imap proxy with full message list and message body caching exist? I see two possible variations, one with on-demand caching (user clicks on a mailbox and a message list is fetched from "master" and cached for next click from another mail…
Alex
  • 1,828
  • 4
  • 31
  • 52
4
votes
0 answers

How mod_cache working with "must-revalidate" and "max-age"?

Quick question before I will explain my flow: Сan mod_cache perform revalidate with if-none-match only if max-age is expired in case if it configured in reverse proxy mode? My goal is to reduce a number of revalidation requests to our the origin…
Dmitriy Sosunov
  • 181
  • 1
  • 8
4
votes
2 answers

Strange behavior with nginx try_files. What's wrong in my config?

os: debian stable (squeeze) nginx: squeeze-backports 1.2.1-2~bpo60+1 try_files just behave strange to me. this works as expected, $uri is tried localy if not found -> the @static location is used try_files $uri $uri/ @static; just adding a =404 to…
c33s
  • 1,515
  • 3
  • 21
  • 39
4
votes
6 answers

3million users per month on a very active cart that needs SSL. What cost effective Load balancing options for SSL acceleration are there?

A lot of the expensive 12-25k solutions seem limited to 4k SSL connections simultaneously. Loadbalancer.org has a reasonably priced solution for many HTTP requests, but is limited to 2k SSL connections. For a site as active as mine, will that be…
noonies
4
votes
2 answers

Nginx Reverse Proxy : post_action if proxy cache hit - Possbile?

We have recently found out about nginxes post_action. We were wondering it there was a way to use this directive if a proxy cache hit is made? The flow we were hoping on is as follows: 1) User request comes in 2) If cache HIT goto A / If cache MISS…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
4
votes
1 answer

Apache ProxyPassReverse escaping special characters

I have this very simple reverse proxy rule in Apache 2.2.19: ProxyPass /test http://other.local.machine/test ProxyPassReverse /test http://other.local.machine/test The problem is that it seems mod_proxy escapes the special…
MaxArt
  • 515
  • 1
  • 7
  • 14
4
votes
2 answers

nginx reverse proxy to mongodb rest interface

I'm trying to set up a reverse proxy with HTTP auth that proxies MongoDB's REST interface. So far, I've got this: server { listen 80; server_name tld.example.com; charset utf-8; access_log…
user66336
4
votes
2 answers

Apache Rewrite or Proxy to internal server

First off, this is my first go at apache, so please forgive my beginingingismness :) My basic setup is as such: mysub.domain.com gets sent to my static IP via a CNAME entry at godaddy's DNS manager. It hits my Ubuntu 10 LTS server running Apache2.…
JoshP
  • 278
  • 3
  • 6
  • 25
4
votes
1 answer

Apache reverse proxy not preserving headers

Does anyone know if there is something strange going on? It seems that my reverse proxy setup, doesn't preserve the correct caching headers from the original virtualhost. Let me explain... I am currently using PHP Slim to create an API for my web…
crawf
  • 149
  • 1
  • 3
4
votes
3 answers

Amazon EC2 Elastic Load Balancing - strategy for zero downtime server restart

I have 5 web servers (Apache/mod_perl) behind Amazon EC2 Elastic Load Balancing, when I deploy codes to the web servers, I am doing this.. For each machine, shutdown the Apache Update the code Start over the server and proceed to the next server I…
4
votes
2 answers

Can nginx start apache on demand?

I have an "archive" server for old sites that no longer are being used, but I want to keep them online as part of my CV/Portfolio. They require different apache and php versions and setups, so I am running multiple apaches on different ports, behind…
Alfred Godoy
  • 141
  • 5
4
votes
2 answers

nginx load balancing issue with 301 from backend

I am running into an odd problem for which I am not sure if it is a configuration issue or a bug in nginx. My setup is a nginx reverse proxy which has Apache2 backend servers. The load balancer is pretty basic similar to the example from the wiki,…
Jeroen Ooms
  • 2,239
  • 8
  • 34
  • 51
4
votes
2 answers

Displaying custom error pages on different VirtualHosts in Apache

I have a reverse proxy Apache that is moving the request to a Tomcat servlet. The configuration on the Virtual Host in Apache is: ProxyPass /Site1/ServLet1 http://1.1.1.1/Site1/ServLet1 ProxyPassReverse /Site1/ServLet1…
Mr Aleph
  • 231
  • 1
  • 5
  • 10