Questions tagged [nginx-reverse-proxy]

300 questions
2
votes
1 answer

Handling multiple location proxy blocks in single nginx config file

Completely new to nginx, coming from Apache. I have a simple multiple proxy to nodejs setup put together from a few online resources and the config looks like this: server{ listen 80; server_name dev1.domain.net; proxy_set_header…
John C
  • 23
1
vote
1 answer

Have NGINX automatically upgrade websocket connections in reverse proxy

I have several services I'm placing behind an NGINX reverse proxy, which was simple enough to setup, but I've run into a problem with websockets. A single endpoint is simple enough to specify with a location that includes proxy_set_header Upgrade…
1
vote
0 answers

Dynamic nginx proxy 502 peer closed connection in SSL handshake

does anyone know why am I getting this problem? Basically the connection closes by itself because of dynamic proxy_pass. This is my nginx config. error from log : 2022/08/25 19:45:28 [error] 14208#0: *13 peer closed connection in SSL handshake (104:…
Mr none
  • 11
1
vote
0 answers

Nginx proxy don't work for localhost on port 81 - Always 502 (bad gateway)

I have a simple web application running in a docker container and exposed on port 81. curl http://127.0.0.1:81 returns the index.html of that web app. So it is running and is reachable. Also localhost or using the browser it works. Now I added a…
Alex 75
  • 133
1
vote
1 answer

NGINX passthough TLS real IP?

I was wondering if someone could shed some light on the issue im having, Currently im testing out to TLS pass though to my zimbra server as the SSL has to be in the zimbra server and another wordpress site which also has the SSL the setup would this…
0
votes
0 answers

NGINX reverse proxy with port - port is being lost

I am trying to reverse proxy from an IPv4 listen to an IPv6 host all using port 8006. The problem is the port number is getting lost, when it gets to the destination the :8006 is missing. The .conf file server { listen 8006 ssl; server_name…
Mark-A
  • 1
0
votes
0 answers

how configure nginx for URL rewrting scenario

i have a scenario but i do not know how to configure nginx to attain this: the clients request "X.DOMAIN-A.XYZ" and the request goes to nginx which is configure as a reverse proxy. now the nginx must rewrite the domain as a "Z.DOMAIN-B.TRD" and…
0
votes
0 answers

Nginx reverse proxy errors on JS

We have certain sites we need to mask our client IP addresses with a proxy when they browse to those sites. I have built NGINX on AWS Linux 2023. It works with simply google.com but does not work with any site using .js. Not sure what to try next.I…
0
votes
0 answers

nginx proxy manager how set redirect 443 SSL default to another local web server apache+nginx+LetsEncrypt

A user from the Internet requests any site whose IP refers to nginx proxy manager If the site name is not found in the nginx proxy manager list, then nginx proxy manager redirects the request to another web server with which it is located in the…
0
votes
1 answer

Nginx reverse proxy does not respond to internet request

I'm currently in the process of switching our reverse proxy from (a hacky) IIS + ARR to Nginx reverse proxy via Nginx Proxy Manager container on Ubuntu Server 22.04. I've am able to access the services while inside the LAN both my hostname and IP…
Liaoo
  • 101
0
votes
1 answer

Nginx Proxy Manager proxy_pass not working

On Nginx Proxy Manager I have this configuration (names redacted) # ------------------------------------------------------------ # www.lab.myself.it # ------------------------------------------------------------ server { set $forward_scheme…