Questions tagged [nginx-reverse-proxy]

128 questions
3
votes
4 answers

How can I get nginx not to override x-forwarded-for when proxying?

I have an nginx server behind a load balancer, the nginx server passes requests on to a variety of services, but in this case a docker container running apache. The load balancer sets an X-Forwarded-For correctly, but by the time it gets to the…
Aquarion
  • 285
  • 4
  • 10
2
votes
1 answer

Use ports other than 80 and 443 on Cloudflare

I have an issue where I can't use ports 80 and 443 for my website/services because these are already taken on the router. I don't have control over, can't change it or put a reverse proxy in there so I am forced to use different ports. I found that…
Gerge
  • 23
  • 3
2
votes
1 answer

NGINX not Serving Image Files Properly

I have set up a django website that would be served by Nginx, everything was working perfectly not until images stopped showing recently. I tried inspecting the possible cause of this strange development using curl and then realized that the…
Ruby
  • 71
  • 8
2
votes
0 answers

NGINX 502 Bad Gateway error inside Docker container

I haven't had any issues with my Docker container or NGINX until today where I am getting a random unexpected 502 Bad Gateway error even though I have made no changes to my configuration files, Docker files, or any other file in my project. The 502…
1
vote
0 answers

Cannot reach my external domains when connected to WireGuard VPN?

I have an Unraid server setup with services like WireGuard VPN, Home Assistant, Nginx Proxy Manager. The setup is as follows: WireGuard is running as "Remote tunneled access" with DNS server (192.168.1.1) which is my router. Home Assistant is…
1
vote
0 answers

Nginx reverse proxy seems to ignore specified port

I have a gitea server listening on public IP 111.222.333.444, port 3000. If I open http://111.222.333.444:3000 on my browser, I can access normally. I have an nginx server running on 999.888.777.666. I have domain registered, and the DNS specifies…
Pablo M
  • 111
  • 2
1
vote
0 answers

LetsEncrypt HTTPS nginx and systemd service for Jupyter Notebook?

I get no errors in neither /var/log/nginx/{access,error}.log nor the journalctl for jupyter and nginx. Putting it all in an HTTP block works, HTTPS the website never loads (I tried curl -Lvvv 'http://DOMAIN_NAME' and the redirect worked but then…
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
  • 2
1
vote
2 answers

nginx reverse proxy returning 404 for some HTTP requests (but not all)

So I have configured a reverse proxy using nginx 1.18.0. I am able to access my desired website through the reverse proxy already, but some requests are failing (eg. for the favicon), because the location /app3/ is not included into the request url.…
Jakub
  • 11
  • 3
1
vote
1 answer

How can I set up an nginx reverse proxy combined with try_files?

I'd like to call a named location which handles a reverse proxy directive. So I've tried the following lines in my virtual host section: upstream node_upstream { server 127.0.0.1:8000; keepalive 64; } server { server_name…
LongHike
  • 147
  • 5
1
vote
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
  • 13
  • 2
1
vote
0 answers

Use NGINX as a reverse proxy for Object storage to serve WEBP conditionally

I'm using a location config like this in Nginx for serving WEBP when the user supports it map $http_accept $webp_suffix { default ""; "~*webp" ".webp"; } server { #... location ~* \.(?:jpg|jpeg|png|webp)$…
1
vote
0 answers

Performance, Security and Scalability of nginx proxy vs ssh tunnel

I'm wondering about the difference in performance, security and scalability for nginx and ssh tunnel for a web application. For my case, I have a VPS set up, whos only job is to forward the traffic to my home router. This traffic travels between the…
Typewar
  • 157
  • 1
  • 10
1
vote
2 answers

Authorization Header Missing Upon NGINX Proxy Pass to subdomain

Hi I'm running Laravel on NGINX server and I would like to use NGINX reverse proxy capability as an API gateway for my Laravel and other node API application. Here are my configurations: Application URL: staging-app.example.com Application API…
1
vote
1 answer

How can I remove an accept-encoding request header in nginx?

The recent update to zlib due to a security hole appears to cause a major problem when serving PHP-FPM 8.0 via nginx on Ubuntu focal. Any requests with a gzip encoding fail right at the start of the response, though nginx logs the requests as…
Synchro
  • 2,983
  • 5
  • 25
  • 35
1
2 3
8 9