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

https reverse proxy on http jetty

I have a jetty application on http. My web hosting runs a reverse proxy on apache on https, which proxies to my jetty application (http). browsing the first page (https://example.com/index.html) works, however when I click on a link, it falls back…
1
vote
1 answer

Make an error page folder serve a 403 error to external requests

I'm fiddling about with a server, and I've made one of the subdomains a proxy for a service that isn't always up. The server block looks like: server { server_name servlet.example.org; error_page 502 /error/down.html; location / { …
1
vote
1 answer

Nginx ignores my second server directive

I installed nginx via apt-get install nginx on ubuntu 14.04. As such, the default setup includes configs from the directory /etc/nginx/conf.d/ include /etc/nginx/conf.d/*.conf; In my conf.d folder I have the following two files (site1.conf and…
Eldamir
  • 179
  • 1
  • 10
1
vote
2 answers

Nginx does not serve static files over HTTPS

I am trying to set up Nginx in front of Apache as a reverse proxy and to serve static files. I 301 http to https, and provide the directives in https section to serve a static folder via an alias. However, for some strange reason the files get…
user3521621
  • 265
  • 1
  • 4
  • 11
1
vote
1 answer

Custom error pages when using IIS as a reverse proxy

I've configured IIS to act as a reverse proxy for a development server (dartlang's pub serve if you're curious). I'm doing this because the development server doesn't support custom error pages and I need them to be working locally. I've set up…
w.brian
  • 111
  • 3
1
vote
1 answer

Yet another 502 error with NginX

I'm trying to put a server@home in place with some basic services. All services run into a dedicated VM. Each VM is hosted on vSphere 5.5. So far I have : Debian wheezy with nginx used as a reverse proxy : 192.168.1.12 Debian wheezy with nodeJS…
Caktus
  • 11
  • 2
1
vote
0 answers

nginx proxy won't retry if backend is unavailable

I have an application that sits behind an nginx reverse proxy. Nothing fancy, just a simple server { listen 54321; proxy_connect_timeout 5000ms; proxy_read_timeout 5000ms; location / { proxy_pass http://localhost:54322/; } } nginx…
musiKk
  • 127
  • 6
1
vote
0 answers

Turn on/off proxy pass in nginx if a particular header is set

For testing purposes (in particular I'm developing a performance analyzer for a website that currently runs in production) I need to have some endpoints (es: /performance) that should be processed by nginx (they acquire data like time points etc.…
1
vote
1 answer

Use hostname for set_real_ip_from in Nginx

How to use hostname and not directly IP for set_real_ip_from in Nginx? I have a reverse proxy which can change IP as it is restated (it is a Docker container), but I do not want to trust other IPs from the same range (other Docker containers). I am…
Mitar
  • 517
  • 4
  • 18
1
vote
1 answer

Is basic authentication secure when it goes though my reverse proxy on SSL?

Hoping someone can let me know if im on the right track. I use IIS on my file server within my network. I have an apache2 server which takes all HTTP and HTTPS requests and by way of reverse proxy sends them to the correct server. Within the network…
1
vote
1 answer

Lots of users, reverse proxys and problems with both

I have a somewhat unique situation that is making managing my vpns a bit of a pain, so I am trying to make it easier on me and my users, hope somenone can give me some ideas and/or alternatives. The situation right now is that I have around 600…
Argais
  • 111
  • 4
1
vote
1 answer

nginx reverse proxy with basic_auth - 404 Not found

I have an nginx server block to proxy_pass content from three servers: gitlab, Rshiny and static content from another nginx server block. All this works fine, until I try to add password protection to one of the directories in my static content…
Thomas
  • 11
  • 1
  • 3
1
vote
1 answer

nginx reverse proxy all requests to two upstream servers?

I need to adjust a nginx reverse proxy which used to front a single server to send all requests it receives to two different upstream servers. I was thinking I could do it with the configuration below, but I wasn't sure if that would work and if…
1
vote
0 answers

HTTP CONNECT request body is reduced to / when proxying through Apache

I am using Apache 2.2.15 as a reverse-proxy running on Scientific Linux 6. It is being used to connect an application to a remote server, where the application being connected to requires that the CONNECT request comes through with the body…
hannu40k
  • 111
  • 5
1
vote
1 answer

Unable to configure Nginx as a reverse proxy for elasticsearch on another server

I'm trying to use Kibana on a server A to access elasticsearch on a server B. elasticsearch is protected with a basic auth authentication on server B. Kibana is also protected with basic authentication (and the same password) on server A. I'm…
Hugo Lassiège
  • 113
  • 1
  • 3