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
21
votes
2 answers

Error with IP and Nginx as reverse proxy

I configured my Nginx as simple reverse proxy. I'm just using basic setting location / { proxy_pass foo.dnsalias.net; proxy_pass_header Set-Cookie; proxy_pass_header P3P; } The problem is that after some time (few days) the site behind…
max54
  • 330
  • 1
  • 2
  • 13
21
votes
4 answers

Is it possible to connect the Google Maps API through reverse proxy in my app?

I am working on an app where I want to use the Google Maps API. The problem is the connection to Google Maps API server is unstable. Sometimes it's OK but other times it's blocked because I'm in China. The solution I've come up with is to make all…
treblam
  • 265
  • 4
  • 14
21
votes
1 answer

ProxyPassMatch with ProxyPassReverse

Folks, We are trying to setup Apache reverse proxy for the following scenario: Incoming requests take the form http://foo.com/APP/v1/main.html For some servers the URL will reference a difference version, say, http://foo.com/APP/v2/main.html An…
Raj
  • 2,852
  • 4
  • 29
  • 48
20
votes
2 answers

502 Bad Gateway - NGINX no resolver defined to resolve

I have created a proxy pass for multi URLs. listen 80; listen [::]:80; server_name ~^(.*)redzilla\.11\.75\.65\.21\.xip\.io$; location / { set $instname $1; proxy_pass…
20
votes
2 answers

How do I turn off wget proxy?

I had been using a proxy for a long time. Now I need to remove it. I have forgotten how I have added the proxy to wget. Can someone please help me get back to the normal wget where it doesn't use any proxy. As of now, I'm using wget
Trect
  • 2,759
  • 2
  • 30
  • 35
20
votes
10 answers

PHP most accurate / safe way to get real user IP address in 2017

What is the most accurate way to get user's IP address in 2017 via PHP? I've read a lot of SO questions and answers about it, but most of answers are old and commented by users that these ways are unsafe. For example, take a look at this question…
Infinity
  • 828
  • 4
  • 15
  • 41
20
votes
5 answers

Keycloak behind apache reverse proxy

I have surfed through google without finding any concrete answers or examples, so again trying my luck here (often get lucky). The problem I have a single spring boot RESTful service running behind an apache reverse proxy. This RESTful service is…
Gogi
  • 1,695
  • 4
  • 23
  • 36
20
votes
1 answer

How can i proxy to SSL backend without specifiyng cert files?

I have an Play 2.1.x application which signs itself using JKS. It's up, running and available at domain.com:9443, I need to proxy it with nginx, as there will be more apps on the same machine, (therefore can't run it just on port 443) I added the…
biesior
  • 55,576
  • 10
  • 125
  • 182
19
votes
6 answers

Apache2 won't start after upgrade to Ubuntu 22.04 LTS - Cannot load /usr/lib/apache2/moduleslibphp8.0.so

I am a bit stuck as to how to fix this. I did a distro upgrade a server running Apache2. Since the upgrade it has not worked. I ran a config test and below is the error. I had no issues with my configuration on the previous version of Ubuntu…
RichardODonoghue
  • 266
  • 1
  • 2
  • 7
19
votes
2 answers

Angular App running on nginx and behind an additional nginx reverse proxy

I'm currently trying to create a reverse proxy for two Angular apps. I want the apps to be both accessible through the 443 port of the docker host with SSL enabled (like https://192.168.x.x/app1 and https://192.168.x.x/app2), so that the users don't…
19
votes
1 answer

nginx proxy pass to external url

I have configured my nginx on amazon ec2 for the url www.example1.com . I need to proxy pass www.example1.com/blog to my blogging host www.example2.com/blog which is hosted on bluehost ( shred hosting ) without changing the url in browser. Is it…
Amrish Patel
  • 442
  • 1
  • 6
  • 14
19
votes
2 answers

TCP proxy to postgres database as an upstream server in nginx

Question: Is it possible to set Nginx as a reverse proxy for a database? These are the flags I have at the moment and I believed that having the --with-stream module was sufficient to use TCP streams to the database. Is this a PLUS feature? Nginx…
Devonte
  • 3,319
  • 5
  • 20
  • 15
19
votes
4 answers

Websockets reverse proxy in IIS 8

I'm attempting to connect to a websockets server (websockify) through a reverse proxy on IIS. The IIS and websockets server reside on the same physical server (Windows Server 2012 R2, IIS 8.5, ARR 3, Websockets enabled). I've seen a few questions…
cydc
  • 191
  • 1
  • 1
  • 5
18
votes
2 answers

What are the disadvantages of using AWS ELB directly with Gunicorn (no nginx)?

Typical setups I've found on Google to run a django application on AWS all suggest a setup like ELB -> nginx -> gunicorn -> django I was wondering why the nginx part is really needed here? Isn't ELB sufficient as proxy? In our case, we are running…
Alex
  • 409
  • 4
  • 12
18
votes
5 answers

WebSocket through SSL with Apache reverse proxy

On the client side, I am trying to establish the wss connection: var ws = new WebSocket("wss://wsserver.com/test") and it returns an error: WebSocket connection to 'wss://wsserver.com/test' failed: Error during WebSocket handshake: Unexpected…
Andrei Savin
  • 2,350
  • 4
  • 26
  • 40