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
3 answers

Is HAProxy still necessary when Varnish can act as a load balancer?

I would like to load-balance my application servers, as well as cache the responses from them. I've read an article dating back to 2012 on HAProxy's website, that was supposed to clear the confusion between HAProxy and…
BenMorel
  • 4,507
  • 10
  • 57
  • 85
5
votes
1 answer

How to reverse proxy https with lighttpd?

I want to forward (reverse proxy) requests to https://secure.mydomain.com(:443) to my internal (HTTPS-)WebServer on port 8443 using Lighttp. Environment-Infos: My WebServer is a Tomcat running on Port 8080 (HTTP) and Port 8443 (HTTPS). HTTP and…
Ben
  • 221
  • 2
  • 6
5
votes
1 answer

ProxyHTMLURLMap not working in apache2.4

I am using apache2.4 on ubuntu 14.04. And I have enabled mod_proxy_html.But my URL are not getting replaced by a new one. Same thing I did in apache2.2 and it was working perfectly. This is my Virtual host file. ServerAdmin…
Vinay Saini
  • 151
  • 1
  • 1
  • 7
5
votes
2 answers

Nginx reverse proxy in nested locations

I'm using Nginx as a reverse proxy for multiple applications in multiple servers and I'm trying to add common cache directives to static files of each application. My original configuration is something like this: location /app1{ ... …
Jose Antonio
  • 151
  • 1
  • 2
5
votes
2 answers

Can HAProxy select a backend based on a lookup table?

Let's say I have items A, B, and C. I have two backend servers: server01 and server02. Item A can be handled by server01, item B and C can be handled by server02. New items and servers get added and removed, and we programatically update a hash…
kvz
  • 402
  • 4
  • 15
5
votes
1 answer

nginx reverse proxy not passing requests

I have a domain (example.com) and a subdomain (sub.example.com) both hosted on the same server. I want to proxy a request so any file requested on http://sub.example.com/api/ will be requested on http://example.com/api/ (along with the…
5
votes
4 answers

Nginx: Redirect both http and https root to subdirectory

I'm attempting to redirect the root domain for both http and https in nginx to the same subdirectory (https): So e.g. http://example.com -> https://example.com/subdirectory https://example.com -> https://example.com/subdirectory As simple as this…
Elijah Paul
  • 557
  • 1
  • 8
  • 19
5
votes
2 answers

How to properly configure nginx proxy pass when the endpoint is in a root context?

I'm trying to figure out how to configure a reverse proxy in nginx when the endpoint is in a root context: http://frontend.com/mylink proxy forwards to http://10.0.0.2:8000/ Unfortunately I can't change the context of the application at…
tftd
  • 1,498
  • 7
  • 25
  • 40
5
votes
0 answers

Apache as a reverse proxy for GitLab Omnibus

I'm using GitLab Omnibus on a CentOS6.5 server. The gitlab nginx server listen on the 6543 port (Apache already using 80 and 443). I want to use Apache as a reverse proxy to access GitLab with that address: gitlab.example.com instead of…
AMDG
  • 151
  • 5
5
votes
2 answers

Apache virtual hosts and reverse proxy

I have many virtual hosts whose domain names map to a single Apache server (let's call it server1). Under certain circumstances, all URLs for a certain virtual host should be served by a different server instead (let's call it server2). What's the…
oggy
5
votes
2 answers

Use nginx reverse proxy for redirection

I have a.b domain (for example) and want to serve some github pages (username.github.io/project) in a.b/c. It means that I also want to keep my browser url to a.b/c and showing contents of username.github.io/project. I have following settings in…
Jongsu Liam Kim
  • 161
  • 1
  • 1
  • 6
5
votes
2 answers

Prevent Apache from reverse proxying certain HTTP methods

I am using apache as a reverse proxy to a ruby on rails application server. When a HTTP request is received with a non-standard HTTP method, this causes an error in the application server that exposes some (minor) details about the environment. Can…
Slicedpan
  • 201
  • 1
  • 3
  • 10
5
votes
1 answer

Preserve response headers in NGINX load balancer

I have set up NGINX as a load balancer for two Domino servers this way: http { upstream www.mydomain.com { server 1.1.1.1; server 2.2.2.2 backup; } server { listen 80; server_name www.mydomain.com; …
Panu Haaramo
  • 343
  • 7
  • 20
5
votes
0 answers

ARR reverse proxy to Azure Website inside Azure Cloud Service

I am trying to rewrite www.contoso.com/blog/ to a wordpress Azure Website (contosoblog.azurewebsites.net). I have completely configured all inbound and outbound rules, and have tested them locally on a development machine and can confirm it works --…
codewisp
  • 166
  • 3
5
votes
3 answers

How do I create a custom header from an existing SSL environment variable?

OK I have spent all day on this-- I'm using apache with mod_ssl I'm trying to take an existing environment header, "%{SSL_CLIENT_S_DN_CN}s" which looks like "Lastname Firstname Mi username" and set a new header called USERNAME and set that equal to…
MattPark
  • 303
  • 5
  • 20