Questions tagged [nginx-reverse-proxy]

283 questions
1
vote
0 answers

SSL_do_handshake() failed warning on nginx (error 0A000412)

I have a nginx server functioning as a reverse proxy. It is sat behind Cloudflare. The website is functioning fine (there are no errors on the browser), but there are lots of warnings in the logs like this: [info] 1187517#1187517: *2446393…
Neil D
  • 111
  • 3
1
vote
1 answer

nginx with subdomains and two servers

I have two servers: the first one has the IP address 192.168.1.216 and is configured with the hostname hub.domain.tld (jupyterhub). The DNS record is pointing to the public IP address, and all requests on ports 80 and 443 are forwarded to…
1
vote
2 answers

add_header always in nginx reverse proxy fails in some situation

In following config, when upstream server returns other than HTTP 200 OK response, request to hostnameb.example.org is missing X-custom-server-info header. hostnamea.example.org response is correct (including the header). Any idea why or how to fix…
tomas
  • 123
  • 3
1
vote
1 answer

nginx proxy_pass proxy_set_header of proxy host

Using NGINX as a reverse proxy, I want to tag which load balancer/proxy the request can in on, and pass that to the end app servers... For example, we have 2 ingress connections, using round-robin DNS to 3 load balancers, so, connection one has 3…
MrPHP
  • 163
  • 8
1
vote
1 answer

How to use nginx as ssl reverse proxy for postgresql TCP connection?

What I want to achieve is this [Postgresql Database] -- transparent TCP -- [clients on the cloud] [Postgresql Database] -- transparent TCP -- [nginx on jump server] --SSL TCP-- [clients outside the cloud] I would like to add an additional layer of…
George Y
  • 528
  • 6
  • 16
1
vote
1 answer

Nginx UDP proxy shared connection is busy

We are proxying UDP packets for a game server through a Nginx reverse proxy. Clients timeout very often because the Nginx can't handle the requests. Initially it works flawlessly, but when more clients are connected to the game server (40-50), we…
hachan29
  • 11
  • 2
1
vote
0 answers

Using Nginx upstream hosts with proxy_pass

Below is the bare-bones stripped down Nginx config that demonstrates the problem I'm having directly. The "real-world" setup has multiple upstreams and multiple conditional checks that are omitted for clarity. upstream barhost { server…
Rino Bino
  • 511
  • 5
  • 21
1
vote
1 answer

change domain proxy_pass to ip

I used reverse proxy but seeing the nginx log it changes the address to ip and it doesn't work because the destination server is vhost and it only works with domains. location = /video { resolver 8.8.8.8; if ( $arg_net != "" ) { …
Joe
  • 11
  • 2
1
vote
0 answers

Nginx proxy allow specific ip to access server not working

I have an nginx reverse proxy for multiple domains one of which i want to restrict access to unless connected to VPN. So i have added allow for the vpn ip addresses for this one particular server and it's denying access no matter whether i'm…
noname
  • 15
  • 1
  • 4
1
vote
0 answers

nginx reverse proxy: hide client identity and IP address for wix

This is my first post in this community. I am hosting a website in Wix and want to restrict access to a certain number of individuals. In addition, I want everyone to pass my nginx-reverse proxy before the traffic hits Wix. I configured DNS…
nils-79
  • 11
  • 1
1
vote
0 answers

Modify the `Host` header or pass `X-Forwarded-Host` instead when using Nginx as reverse proxy?

I'm trying to use Nginx as a reverse proxy and the upstream server is an ASP.NET Core application where I've registered the ForwardedHeadersMiddleware, which will read three different X-Forwarded-*…
Arad Alvand
  • 113
  • 6
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…
directedition
  • 287
  • 3
  • 10
1
vote
0 answers

nginx dynamic forwarding requests coming from users

I have a backend application that binds users with server ports (I attribute a random available TCP port to each connected user) Using NGINX, I want to redirect all requests coming from a user -Identified by his unique id- to his actual port (All…
1
vote
0 answers

Nginx Rewrite rules not working for directory

I am trying to write a below rewrite rule but somehow this is not working and I would really appreciate if someone can help me on this? I have a Nginx reverse proxy set and my orignial server IP is 172.16.3.15 and site listens on…
Blason R
  • 29
  • 3
1
vote
0 answers

nginx configuration for nextcloud with path

I run nextcloud on docker (image nextcloud:production-fpm) with an nginx-container (image: nginx) as reverse-proxy (handling SSL-termination) based on the example nginx-configuation…
soriak
  • 13
  • 5
1
2
3
18 19