Questions tagged [reverse-proxy]

A reverse proxy server usually refers to an HTTP accelerator or load-balancer which proxies requests on behalf of the actual clients to one or more backend HTTP servers.

A reverse proxy server usually refers to an proxy server which proxies requests on behalf of the actual clients to one or more backend HTTP servers.

It can be used as HTTP accelerator, or load-balancer, or to give the access to LAN internal web-services to Internet users.

Wikipedia: Reverse proxy

Apache HTTP as forward and reverse proxies

5119 questions
18
votes
5 answers

Flask redirect(url_for) error with gunricorn + nginx

I am having a problem with the redirect(url_for) function in my flask app. Any redirect(url_for("index")) line redirects the application from domain.com/app to ip-addr/app, where the ip-addr is my own client machines ip, not the server's. This has…
N. Ma
  • 629
  • 2
  • 6
  • 15
18
votes
1 answer

How to rewrite Location response header in a proxy setup with Apache?

I have a primary proxy which sends requests to a secondary proxy on which OpeenSSO is installed. If the OpenSSO agent determines that the user is not logged in, it raises a 302 redirect to the authentication server and provides the original…
xeonman9000
  • 181
  • 1
  • 1
  • 6
18
votes
2 answers

Adding a custom header to ARR requests

I'm running a service behind IIS using ARR as a reverse proxy. I know there are x-forwarded-for and x-arr-log-id headers that are passed along. However, what I would like is a private key passed in so that the backing application explicitly knows…
Tracker1
  • 19,103
  • 12
  • 80
  • 106
17
votes
1 answer

How to solve 502 Bad Gateway errors with Elastic Load Balancer and EC2/Nginx for HTTPS requests?

I'm running into '502 Bad Gateway' issues for HTTPS requests when using AWS Elastic Load Balancer (Application type) in front of EC2 instances running Nginx. Nginx is acting as a reverse proxy on each instance for a waitress server serving up a…
Luke
  • 781
  • 2
  • 8
  • 11
17
votes
2 answers

proxy node request to new port and act like reverse proxy

I need to create an application that proxies a request from port A to Port B. For instance if a user connects on port 3000 he will be routed (under the hood) to port 3001, therefore the "original" application will run on port 3001 but in the client…
user4445419
17
votes
3 answers

Require HTTPS with Spring Security behind a reverse proxy

I have a Spring MVC application secured with Spring Security. The majority of the application uses simple HTTP to save resources, but a small part processes more confidential information and requires an HTTPS channel. Extract from the…
Serge Ballesta
  • 143,923
  • 11
  • 122
  • 252
17
votes
3 answers

Apache2 WebSockets reverse proxy on same URL

How to configure Apache2 to proxy WebSocket connection (BrowserSync for example), if it's made on the same URL, with only difference being header "Upgrade: websocket" and URL schema ws://? For example: HTTP request: GET…
metalim
  • 1,479
  • 1
  • 12
  • 22
17
votes
2 answers

Nginx, load-balancing using sticky and least connections algorithms simulteniously

We use Nginx as load-balancer for our websocket application. Every backend server keeps session information so every request from client must be forwarded on the same server. So we use ip_hash directive to achieve this: upstream app { ip_hash; …
Alex Emelin
  • 814
  • 1
  • 9
  • 19
17
votes
7 answers

Apache & Tomcat: ProxyPass and ProxyPassReverse

I'am having troubles configuring Apache and Tomcat, this is the scenario: I have an Apache Web Server, running and working normally, I can access to this one just typing: http://localhost Also, in this host, I have a Tomcat running and working…
karlos9o
  • 222
  • 1
  • 2
  • 7
17
votes
2 answers

Configure Nginx with proxy_pass

I'm trying to configure Nginx to proxy stuff on a subdomain: dev.int.com I want dev.int.com to be proxied to IP:8080, and dev.int.com/stash to be proxied to IP:7990 Here's my current config file server { listen 80; server_name …
bear
  • 11,364
  • 26
  • 77
  • 129
16
votes
3 answers

How do I setup TeamCity for public access over https?

How do I setup TeamCity 4.0 so that I can access it over port 443 on the internet? e.g. https://teamcity.mydomain.com I am running IIS 7 on the same server that TeamCity is installed. I see two options: Setup TeamCity to use port 8443 and create…
Lance Fisher
  • 25,684
  • 22
  • 96
  • 122
16
votes
1 answer

Apache reverse proxy "Failed to load resource" 502 Proxy Error

Background As the path of least resistance on getting my Web app (served by AllegroServe) to deal with a potential partner's Shibboleth SOS setup I decided to try running Apache in front of AllegroServe, since the partner and Shibboleth support…
kennytilton
  • 994
  • 1
  • 6
  • 16
16
votes
7 answers

Problem with GWT behind a reverse proxy - either nginx or apache

I'm having this problem with GWT when it's behind a reverse proxy. The backend app is deployed within a context - let's call it /context. The GWT app works fine when I hit it directly: http://host:8080/context/ I can configure a reverse proxy in…
Don Branson
  • 13,631
  • 10
  • 59
  • 101
16
votes
2 answers

Apache proxy load balancing backend server failure detection

Here's my scenario (designed by my predecessor): Two Apache servers serving reverse proxy duty for a number of mixed backend web servers (Apache, IIS, Tomcat, etc.). There are some sites for which we have multiple backend web servers, and in those…
Jon Heese
  • 161
  • 1
  • 2
  • 11
15
votes
6 answers

phpMyAdmin inside docker container via nginx reverse proxy

I installed phpMyAdmin docker image and run it with # docker run --name phpmyadmin -d --link mariadb:db -p 8081:80 -e PMA_ABSOLUTE_URI=http://servm3/pma --restart unless-stopped phpmyadmin/phpmyadmin Accessing http://servm3:8081 works fine. The…
släcker
  • 293
  • 1
  • 2
  • 8