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

Apache Remote proxy for a reverse proxy SNI mismatch

Having an issue with our setup of an Apache-2.2 and a reverse proxy which is proxied to via another device. flow is: Apache A -> proxy.abc.net -> Apache B The error we get on Apache B is Hostname proxy.abc.net provided via SNI and hostname…
6
votes
5 answers

Nginx reverse proxy pass through client certificate

I'm trying to set up a load balancer via an Nginx reverse proxy. My application uses client certificates to authenticate clients. I would like my reverse proxy to forward the client certificate to my back-end servers. I have added this line to my…
Hidde
  • 211
  • 1
  • 2
  • 6
6
votes
1 answer

how to configure HAProxy as a reverse proxy?

I have multiple web servers, hosting multiple domains. Occasionally, I need to move a domain from one web server to another. Rather than have to update the DNS for the domain to point at the new server location, I would like to set all the…
radio_babylon
  • 73
  • 1
  • 1
  • 3
6
votes
0 answers

Nginx proxy_pass reverse proxying behind corporate firewall

Has anyone any idea of how to setup nginx behind a corporate firewall, to reverse proxy requests to servers outside the firewall? The reason I want to do this is I am trying to use an application that doesn't support the standard http_proxy settings…
Mark D
  • 191
  • 1
  • 6
6
votes
1 answer

Nginx proxy_pass and absolute paths

I'm trying to run some nodejs app on a server (Ubuntu 14.04), using Nginx and i'm almost done. Here's my server configuration (/etc/nginx/sites-available/default): server { listen 80; server_name my_domain.com; location /test1 { …
6
votes
1 answer

Setting header based on client certificate

I have Apache running as a reverse proxy for an internal server. Users hitting the proxy are required to use client certificates. On the internal server, there is a web application that can use an HTTP header for authenticating users. I would…
6
votes
1 answer

How to create conditional ProxyPass?

I have the following config for one of the sites-available .conf file. Its configure to load the ghost blog if you hit blog.example.com. Somehow its causing example.com to serve up the blog as well. But thats fine too.
resting
  • 1,059
  • 3
  • 10
  • 10
6
votes
1 answer

Nginx reverse proxying to HTTPS upstream getting 502 Bad Gateway?

My goal is to write Jasmine (a JavaScript BDD testing framework) tests that exercise a back-end API built by a separate team. I have a Jasmine server running on port 9000. That code issues AJAX requests with a relative path that begin with /web/. …
Jason Benn
  • 73
  • 1
  • 2
  • 7
6
votes
3 answers

Basic auth for a Tomcat app (JIRA) with Nginx as reverse proxy

I have several subdomains running the Atlassian Tomcat apps (jira.example.com, confluence.example.com, stash.example.com) and I would want to know if it is possible to password protect all of them with basic_auth with .htpasswd. Nginx it is working…
sdude
  • 291
  • 1
  • 2
  • 10
6
votes
1 answer

Squid proxy not caching anything

squid.conf: http_access allow all # Squid normally listens to port 3128 http_port 3128 accel defaultsite=localhost no-vhost cache_peer localhost parent 80 0 no-query originserver name=myAccel cache_peer_access myAccel allow all # Uncomment and…
Dan Fabulich
  • 497
  • 1
  • 6
  • 19
6
votes
1 answer

RFC 2616 with Apache 2.4

I'm using Apache 2.4.3 as a reverse proxy due to it's advertised compliance with RFC 2616. My app uses headers like this to enable caching at the proxy: Cache-Control: public, s-maxage=0 Expires: ... (+1 day) X-Group: A Vary: X-Group ETag:…
ColinM
  • 701
  • 8
  • 19
6
votes
2 answers

IIS sets http header Expires to -1, how do I override this with mod_expires

I'm using an IIS website with a Apache HTTP reverse proxy (mod_proxy with ProxyRequests Off). I want to control the expires headers in apache (don't ask), but IIS is setting the header Expires: -1. This causes mod_expires to ignore the request since…
Jaap
  • 367
  • 3
  • 16
6
votes
2 answers

Apache mod_substitute on HTTP requests to reverse-proxied host

I have the following setup: Printer #1 on LAN Printer #2 on LAN Internet facing Debian Apache 2.2 web server at server-external-ip that I want to use as an IPP gateway to the two printers The two printers are reachable (from LAN and from the…
Danilo Roascio
  • 165
  • 1
  • 6
6
votes
3 answers

How to point sub-domains to different local IP

My question is the same with How to point a subdomain to local server with dynamic IP. The difference is that I do have a static IP from my ISP, I think i do not need to use DynDNS right? so what can I use instead? My goal is to point each…
thang nhoc
  • 63
  • 1
  • 1
  • 4
6
votes
2 answers

Apache ReverseProxyPass redrects to http rather than https

I have a reverse proxy setup using apache mod_proxy: ServerName reverse.server.com ProxyPass / http://10.1.9.11:3000/ ProxyPassReverse / http://10.1.9.11:3000/ ProxyPreserveHost on ...snip ssl…
Paul
  • 1,288
  • 13
  • 25