54,762 questions
-1
votes
1
answer
38
views
Nginx ignores default_server and redirects direct IP requests to the wrong server block [closed]
My server runs Nginx behind Cloudflare (orange cloud enabled).
Direct domain requests are correctly proxied through Cloudflare.
However, direct IP requests still hit my real Nginx, and instead of ...
-3
votes
0
answers
132
views
OpenAI API Key Being Leaked Even Though It’s Stored Securely on Server . Need Help Diagnosing [closed]
I’m facing a serious issue and need help identifying the cause.
My application setup is:
Backend: Python FastAPI
Frontend: Next.js
Auth: JWT (Bearer token)
Hosting: Nginx on a Linux server
OpenAI ...
0
votes
2
answers
64
views
API request tracing with NextJS, Nginx and Django
I’m trying to measure the exact time spent in each stage of my API request flow — starting from the browser, through Nginx, into Django, then the database, and back out through Django and Nginx to the ...
0
votes
0
answers
30
views
nginx got "Segmentation fault (core dumped)" 2 times [closed]
I would like to make nginx reload periodically. However, after many times of observation, I realized after second reload, nginx always got "Segmentation fault (core dumped)" and stopped ...
-3
votes
0
answers
59
views
Nginx not serving static files [closed]
Hi everyone I am trying to upload a application using Nginx, Gunicorn, Django application run fine in development environment but for production it does not serves static files. I tried hard but ...
0
votes
0
answers
56
views
Deploying a localized Laravel app using Dokku
I am using the laravel-localization package to localize my Laravel app. It works perfectly normal on local enviroment (using php artisan serve) and on shared hosting with Apache.
I've just deployed it ...
-1
votes
1
answer
35
views
Extending Cookie Expiry in nginx
I am using nginx as a proxy between a front end and an API.
When the API returns a token, nginx sets it as a cookie.
The cookie will either have an expiry of 30 minutes, or 14 days if the user ticked '...
0
votes
1
answer
115
views
Laravel API returning HTML instead of JSON when served via NGINX
I’m running a Laravel backend alongside a Vue frontend on NGINX. The issue I’m facing is that my API endpoints are returning HTML instead of JSON. For example:
https://isuecampusmap.site/api/ → ...
0
votes
1
answer
53
views
WhatsApp Cloud API webhook verification fails: “The callback URL or verification token check failed”
i started to listening nginx, and when i press the button confirm and save, no one call or check my website, my nginx console is clear. But i past correct address. I spend to this whole day. Can ...
Best practices
0
votes
2
replies
46
views
How to configure Nginx so that X.509 authentication implemented with Spring Security works correctly?
I have a REST API server application that authenticates users exclusively via X.509 authentication implemented with Spring Security, using the Common Name (CN) from the client certificate directly as ...
1
vote
0
answers
72
views
Issue with sqlAdmin under https domain and path
Let me start from middle. I have been play around for a long time with these three part:
nginx which handles the path
Fastapi server
sqlAdmin
The url https://example.com/gem/admin must be passed to ...
0
votes
0
answers
36
views
Nginx cutting off Flask streaming responses (with Docker) even with buffering disabled
I have a Flask backend running inside Docker, and it streams AI responses using a generator.
Locally it works perfectly, but after deploying with Nginx + Docker Compose, the streamed response gets cut ...
-1
votes
1
answer
54
views
Nginx with Docker not resolving domain redirection [closed]
I am trying to set up a home lab with HTTPS using Nginx.
I have made the self signed certs and for this demo I am using the local domain production.local.
My docker compose file for homer is
services:
...
0
votes
0
answers
51
views
403 Unauthorized for JS files but everything else works
Can someone help me out why nginx returns a 403 Unauthorized for .js files, but other files work:
I have a file /etc/nginx/sites-available/my-server.nl:
server {
listen 80 proxy_protocol;
...
0
votes
0
answers
42
views
redirecting heroku django app using nginx not working
I have a Django app hosted on Heroku. It runs via nginx & Gunicorn. Here is my Procfile:
web: bin/start-nginx gunicorn --bind unix:/tmp/nginx.socket --pid /tmp/app-initialized config.wsgi
...
1
vote
1
answer
62
views
Serving js files from static folder in flask app with nginx and Docker
I have a strange issue with js files that cannot be found in a flask app, for which I use nginx in a docker container.
In the HTML template, I have this ref, using the url_for function
<script type=...
0
votes
0
answers
41
views
Nginx module creation on MacOS
I'm trying to create a simple nginx module on MacOS which redirects calls from port 8080 to port 44444 and when the value of a specific header is "reverse" it reverses the content of the &...
Tooling
2
votes
4
replies
102
views
Is there a service or tool for getting notifications for new security releases?
I would like to get notifications for new security releases of all the stuff in my tech stack – not CVE:s, just the latest version that got security fixes. Or, instead of notifications, a script or ...
3
votes
1
answer
84
views
WebSocket Secure connection via Angular Frontend WebApp
I've set up a new dev environment with Nginx as reverse proxy using self signed certificates and a Mosquitto MQTT broker.
I have a NestJS backend using MQTT with following configuration:
private ...
0
votes
1
answer
59
views
How to translate caddy to ingress nginx controller
I'm having this config from Caddy and I want to migrate it to ingress nginx controller
@restrictAccess {
path /path1/loc1/*
path /path2/loc3/*
}
route @restrictAccess {
...
1
vote
1
answer
144
views
Deploy Django and Nginx under subpath
I'm trying to deploy a Django app with Gunicorn and Nginx under a subpath, I'm inside a corporate network, and the path www.example.com/myapp points to the IP 192.168.192.77:8080 of my PC on the local ...
0
votes
1
answer
63
views
Vite built .css file is not being used, page broken as old file is 404
I am using Ubuntu 24.04 and a LEMP stack and vite to host a Laravel 12 application. I am deploying with deployer and running npm run build on the server. Occasionally, I get hit with what seems to be ...
0
votes
1
answer
38
views
Can't get Nginx to use one module over another
trying to setup NGINX as a forward proxy in my environment. I'm using the https://github.com/chobits/ngx_http_proxy_connect_module as it seems to be what people recommend for handling HTTPS traffic.
I'...
0
votes
0
answers
42
views
FastAPI: PDF upload works when called directly inside Kubernetes or locally, but results in blank files when routed through API Gateway/NGINX
I’m running a FastAPI service in Kubernetes that accepts multipart/form-data uploads and stores files in S3.
The upload endpoint works fine when I call it directly inside the cluster using the service ...
0
votes
2
answers
125
views
Angular + Nginx: some users get Unsupported Content-Type "text/html" loading chunk-*.js after deploy (chunk URL serves index.html)
Problem
After a deploy, a subset of users can’t load the app. For them, a specific old chunk URL (e.g. chunk-B3EQFA6E.js) returns index.html with Content-Type: text/html instead of JavaScript. That ...
0
votes
0
answers
31
views
How to configure Nginx for a WordPress root domain while preserving dynamic MERN app routes?
I’d appreciate some advice from experienced DevOps or full-stack engineers.
We have a SaaS product built with the MERN stack, currently running on example.com.
Current setup:
Backend API → api.example....
0
votes
1
answer
43
views
IIS 10 + URL Rewrite: Proxy to internal OnlyOffice (127.0.0.1:8080) returns 502 error
I have an ASP.NET application running on IIS. Inside this app I use OnlyOffice, which requires the OnlyOffice Document Server (running with Nginx).
My application runs at example:
http://my.company....
0
votes
0
answers
78
views
Nginx redirects to 0
I am deploying a Rails 7 app on an EC2 instance that currently has an IP address of xyz.abc.def.ghi. I had been using Nginx and Passenger on previous deploys, but it seems that Passenger relies on now ...
4
votes
1
answer
126
views
Load Balancing with Docker Compose and Nginx doesn't distribute traffic across replicas
I'm using Docker Compose to run a simple HTTP server on multiple replicas to test Load Balancing capabilities of Docker Compose and Nginx.
There are 2 services in the docker-compose.yml file:
services:...
0
votes
0
answers
50
views
Next.js <Image> fails for new uploads (gets HTML response), requires manual pm2 restart to fix
I'm facing a very persistent and unusual issue with a Next.js application in production. The core problem is that whenever a new image is uploaded to the /public/uploads directory, the Next.js <...
0
votes
1
answer
82
views
How to get an Expo app to handle subpaths for requests from a reverse proxy? [closed]
Note: I'm focused on a Web build right now, so this question is focused on solving some very specific to web usage.
I'm building a React Native application where the underlying infrastructure is ...
0
votes
0
answers
50
views
OnlyOffice DocumentServer (Windows, Nginx) injects X-Frame-Options: DENY on some responses — where is it coming from?
Environment
OS: Windows Server 2016 (x64)
App: OnlyOffice DocumentServer (Windows installer, bundled Nginx)
Reverse proxy: Nginx (bundled) terminating TLS on :8443, proxying to docservice (HTTP 127.0....
0
votes
0
answers
56
views
Nodejs socket not working on live server, returning "WebSocket is closed before the connection is established."
hello i am have created a socket in nodejs and used it in nextjs with reactjs, when working with localhost, it is working, when i put it on live server: "It returns FINISHED status in network ...
1
vote
1
answer
100
views
django-vite static assets being served but not loading on an Nginx deployment
I'm deploying a simple Django project on a local Ubuntu server VM running Docker (3 containers, Postgres, nginx and Django). The project uses a lot of HTMX and DaisyUI. On my dev environment they ...
0
votes
0
answers
45
views
NextAuth (Auth.js v5 Beta) is building the callbackUrl using localhost:3000 in Production in Next.js v15.5
I have a Next.js v15.5 app directory frontend project with TypeScript and NextAuth v5 Beta. I have enabled the credentials provider from NextAuth, and everything works just fine locally, but in ...
1
vote
1
answer
132
views
Nodejs backend endpoint not hitting consistently. Using nginx, ec2
I have a game where people can draw and guess, similar to scribble.io. I'm using Nginx for load balancing, hosted on AWS, with a backend written in Node.js.
The problem I'm encountering is that my ...
0
votes
0
answers
80
views
Why do Axios requests fail with HTTP 0 (ERR_NETWORK) only on iOS?
Yesterday I started getting feedback from iPhone users of my web app that some requests are returning an HTTP 0 error. After some investigation, I found that some endpoints work, but others aren't.
...
0
votes
0
answers
76
views
Rails not loading finger-printed assets in Production, causing 404 errors for imported javascript modules
I have a rails project and only in production (works fine locally in development), imported JS modules apparently do not load, and I get console errors referencing 404 errors for the files:
**Error: ...
0
votes
0
answers
75
views
React RSBuild with Nginx proxy returns undefined in API URL after production build
I’m facing an issue with my React frontend (built with rsbuild) and my Node.js REST API.
Setup
Frontend: React (rsbuild)
Backend: Node.js REST API (pm2)
Server: Windows Server
Proxy: Nginx (serves ...
0
votes
1
answer
240
views
File Upload via Livewire Returns 401 Unauthorized in Laravel (Nginx, Cloudflare)
I ran into an issue when trying to upload files using Livewire on my production server. The server responded with 401 Unauthorized.
My setup includes:
Cloudflare with Flexible SSL (Browser → ...
1
vote
1
answer
86
views
URL getting rewritten when using Kubernetes ingress alongside Flask
I want to access two services with my Kubernetes ingress, and both services are based upon a Flask app. Each Flask app is made of a main.py script and a index.html web page, which is rendered using ...
0
votes
1
answer
51
views
Nginx: “no ssl_certificate is defined for the listen … ssl directive” on custom port 8001
Sorry if this question was asked before but I tried the suggestions in there and still cannot resolved it.
I’m running Django project behind Nginx on my VPS. Main project is at https://myproject.com (...
0
votes
0
answers
94
views
How to proxy gRPC traffic using NGINX stream module with TLS termination?
I'm trying to configure NGINX as a reverse proxy for a backend gRPC service, with TLS termination handled by NGINX. My goal is to use the stream module and proxy_pass instead of the http module and ...
0
votes
1
answer
203
views
How to utilize header based routing approach in latest kubernetes and community nginx version i.e. k8s = 1.32.3 ngnix =1.12.4
I am trying to convert some logic written in kubernetes ingress configuration yaml files.
In latest versions of k8s, keywords that are with "-snippets" values are identified as risky one (e....
0
votes
0
answers
65
views
NextJs + tRPC with Nginx as reverse proxy - duplicate header Transfer-Encoding: chunked
tRPC when used on client side with .useMutation() hook sends duplicate Transfer-Encoding: chunked header
Link to reproduction:
https://github.com/DownDev/trpc-bug
To reproduce
run using: docker ...
0
votes
0
answers
43
views
collectd write_graphite plugin kills nginx proxy
I am facing very strange issue :
I have a dedicated VM that host various services (grafana, graphite, carbon-cache, sonarqube, loki) behind an nginx proxy.
All sevices access work find from Internet, ...
0
votes
1
answer
114
views
CSP policy misconfigures causes blank on React frontend
My ReactJS frontend + fastAPI backend in development used to work fine. Nginx proxy is used to route the API call from React frontend to fastAPI. But since yesterday the ReactJS in Chrome started to ...
0
votes
1
answer
157
views
Get AD security groups in NGINX through OAuth2
I'm currently working on a project with multiple interconnected HTTP APIs and I'm adding authentication. The infrastructure I'm working with has a Azure Active Directory 2025 and an SSO accessed ...
0
votes
1
answer
264
views
Is it possible to override APISIX default response using a custom plugin?
Apache APISIX by default gives inconsistent responses when returning errors. Here are some examples:
404 Not Found:
{"error_msg":"404 Route Not Found"}
502 Bad Gateway:
<html&...
0
votes
1
answer
73
views
502 Bad Gateway Nginx | Django | Gunicorn on Load Balancer
I have an AWS Elastic Load Balancer (ELB) and listeners which redirect to port 80 internally (certificates and SSL termination at the ELB). I'm running nginx on the EC2 instances, along with php, ...