Skip to main content

Questions tagged [nginx]

Nginx ("eNgine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

0 votes
1 answer
115 views

nginx rewrite remove all arguments from uri

I've been spinning my wheels for a month on the following problem. Nothing I have tried from reading lots of answers from here and on stack exchange about rewriting queries has worked. Google has ...
Curtis Maurand's user avatar
0 votes
0 answers
76 views

Podman Container Issue - Apache2/Nginx Web Server 403 Forbidden

I’ve been encountering a very curious issue with a Podman container, and I’ve been trying to resolve it for days now. I want to run Container (1) with a web server (Apache2/httpd) on a VM. I forward ...
Robin's user avatar
  • 1
0 votes
1 answer
59 views

More issues with NGINX reverse proxy

For the life of me, I cannot seem to get my NGINX reverse proxy server working for virtual hosts. And before anyone tells me to use NPM, I'm already using it; however, the server is (1) virtual, (2) ...
John Klein's user avatar
0 votes
0 answers
198 views

AWstats on Nginx with multiple virtual hosts

I got awstats set up on Ubuntu with Nginx, and it is now reading the log files and generating statistics. However it is combining multiple sites into one set of stats, even when using the ?domain.com ...
Thystra's user avatar
  • 111
1 vote
0 answers
121 views

is it necessary to recreate the image to have the right level of log?

I’m running php-fpm and nginx in the same image, both managed by supervisord.conf, and deploying that image to a Kubernetes cluster. Our team wants php-fpm—and especially nginx—logs to go to stdout ...
Andy K's user avatar
  • 79
-1 votes
0 answers
56 views

Adding NGINX setup for MediaWiki after PWAs and APIs already up

(I was not sure whether to ask this in StackOverflow or here. I asked there because: 1) The MediaWiki manual suggested there; 2) the nginx tag had more mentions there than here. It got closed, so it ...
GuiRitter's user avatar
0 votes
0 answers
82 views

Nextcloud All in One Returns 502 Bad Gateway error

I am using 1Panel to manage Docker containers which utilizes Openresty 1.21.4.3-3-3-focal for the reverse proxy server. I have used the following compose.yml services: nextcloud-aio-...
expermint's user avatar
0 votes
1 answer
132 views

Add rule to IPTables when also running Fail2ban

I'm running a nginx web-server on a Raspberry Pi 4b running Bookworm. It seems to be running fine and IPTables/Fail2Ban seem to be catching potentially malicious traffic with my rules/jails. Recently ...
RDK's user avatar
  • 123
1 vote
1 answer
196 views

Hugo Performance: Thousands of post subdirectories within public directory

I'm going to host a lot of Hugo posts as page bundles(directories) on a ZFS filesystem on a FreeBSD machine. So there's going to be 100,000 directories(page bundles consist of images and an index.md ...
SeriousGeorgian's user avatar
1 vote
1 answer
443 views

Nginx not setting Access-Control-Allow-Origin on cross domain fetch request

I'm struggling with some Nginx/CORS configuration that had been working for a few months but has stopped recently. I have three domains: an API at api.example.com and two frontends at auth.example.com ...
Tony Merryfield's user avatar
1 vote
1 answer
90 views

NGINX can't resolve upstream name from it's own config

I have a MarkLogic cluster set up in docker and I wanted to add nginx as a load balancer so I can access all hosts on the same ports. The basic configuration doesn't work, when I try to access http://...
trueboar's user avatar
3 votes
0 answers
76 views

Nginx responds on private IP but not on public IP in AWS EC2

I have an Nginx server in EC2. It's in a VPC on a public subnet that's attached to an internet gateway. The security group is configured to allow traffic on port 80 and 443. The instance is running on ...
AlexLordThorsen's user avatar
1 vote
0 answers
71 views

Increasing net.netfilter.nf_conntrack_max leads to unavailable server

We are running debian bullseye kernel-5.10.0-35-amd64 with 2 10G NICs and one smaller NIC which is unused: 01:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection ...
Janning's user avatar
  • 1,731
1 vote
1 answer
91 views

How to configure Nginx reverse proxy with Docker for nopCommerce to work with HTTPS?

Where this question can be asked May be server fault? I’m running a nopCommerce ASP.NET Core application using Docker containers on Linux. Setup: nopCommercecontainer (ASP.NET Core app, exposed on ...
Akash Raghav's user avatar
1 vote
1 answer
144 views

Nginx: Need help figuring out slowdown or possible bot attack

I've been noticing a slowdown over the last week. There doesn't seem to be a ton of traffic on Google Analytics, but there seems to be a ton of unique IP addresses hitting the site. I have about 20 ...
peppy's user avatar
  • 93
0 votes
1 answer
66 views

How to enforce VPN access on HTTPS with Nginx passthrough while SSL is terminated on backend?

I have an Nginx reverse proxy gateway forwarding traffic to a backend host running a website and PHP apps. The backend terminates SSL (certs are managed there), and the gateway currently uses stream ...
Kaskapa's user avatar
0 votes
0 answers
154 views

Nginx NTLM and Exchange/Outlook logon fails

I have Exchange 2019 -> Nginx -> Internet. Nginx is self compiled with "more headers" and "nginx-ntlm" modules. I've looked at all available posts here, other places and 3 ...
Emil Khisam's user avatar
0 votes
1 answer
69 views

Can't see repositories on nginx/cgit

I am using Ubuntu 22.04 for server. I installed nginx and cgit to get repositories on the web. After setting up, I got homepage working, but no repository is shown. I choosed /var/git directory for ...
Codesynth's user avatar
4 votes
2 answers
143 views

Digital Ocean - TLS traffic does not end at Load Balancer

I have setup my website infrastructure on Digital Ocean, below are some details of infra HTTPS traffic from Internet going to Load Balancer Kubernetes cluster with 2 nodes, running application pods ...
Abdus Samad's user avatar
0 votes
1 answer
64 views

How to safely add a header with $uri?

on nginx, i want to add a header with the clean path requested. for example: https://example.com/some/path?asdf=1, should set x-path: /some/path header. I would like to avoid header injections, etc. (...
gcb's user avatar
  • 341
0 votes
0 answers
91 views

How to change PHP's $_SERVER['SERVER_PORT'] on Apache, behind an Nginx reverse proxy?

I set up Nginx and Apache2 on the same machine with Nginx functioning as a reverse proxy. Nginx uses SSL (at least for 1 of 2 domains: example.com), Apache is used for handling PHP using FPM/FastCGI. ...
Psychic Birdy's user avatar
0 votes
0 answers
60 views

nginx ProxyPass not working as expected

I have a backend that serves content over different ports. My goal is to configure Nginx to redirect requests based on the URL path. The problem occurs when I try to access domain.com/manager (the ...
drodriguez's user avatar
0 votes
0 answers
101 views

Nginx - 302 redirect not working if the URI with more than one subpath

I am using Nginx version 1.25. I am having the Nginx config as below. # on alpine, copy to /etc/nginx/nginx.conf worker_processes auto; error_log /...
Soorya Prakash's user avatar
0 votes
1 answer
230 views

Django app is not working as expected when using subdomains

I have a website at cerulinux.com that works great. But then I introduced subdomains. You click on the link for the page you want to have your subdomain pointed to, it shows the subdomain in the URL ...
TheFlyingPrussian's user avatar
0 votes
1 answer
165 views

Is using map in conjunction with proxy_pass like this a good idea?

Learning that one should not use if inside location statements got me to rethink and redo my nginx config. I got an excellent answer on how I can properly use error_page to display a custom error page ...
Marco's user avatar
  • 153
0 votes
1 answer
180 views

Clear Cloudflare TXT Records

I have attempted to register a certbot certification for a long time. Many TXT acme challenges have been attempted with 100% failure. I checked my latest TXT record with DNS checker for my domain ...
daniellooartist's user avatar
0 votes
1 answer
113 views

nginx serve the same image for all image requests that start with a specific string

How to configure NGINX virtual host (vhost) to serve the same image (/images/game-board.png) for all image requests that start with a specific string like /images/game-board-? Example: For these image ...
Raghavendra N's user avatar
4 votes
1 answer
381 views

Why are requests not processed with the error page handler location?

I have nginx with a protected reverse proxy to a local IP: server { server_name protected.example.com; client_max_body_size 100M; listen 0.0.0.0:443 ssl; ssl_certificate /path/to/...
Marco's user avatar
  • 153
1 vote
0 answers
41 views

rate limit in http scope of nginx

Rate limiting directives in the nginx (e.g. limit_req) can appear in 3 scopes: http, server, and location. What happens if we define them in the http scope? Will that limit be applied to all servers ...
Afshin's user avatar
  • 123
1 vote
0 answers
142 views

Need help running nginx with podman and reverseproxying to other containers

I have an nginx container with -p 8080:80. I am trying arrange my proxy_pass so that my browser client can go to <ip of container server>:8080/app and it will be redirected to another container ...
Ray Jantz's user avatar
1 vote
0 answers
25 views

Cannot open a port on a remote gcloud server

I've got a server (let's name it A). There is an Nginx on the entry point, on the server, not in the container. So all requests to my server are handled by Nginx. Then, there are services inside ...
klukashka's user avatar
2 votes
1 answer
77 views

Nginx starts writing to its new log file when logrotate is called manually, but not when it's called by systemd

On 2025-07-15, my /var/log/nginx looked like this: -rw-r--r-- 1 www-data www-data 1.9M Jul 15 13:02 access-2025-07-14.log -rw-r--r-- 1 www-data www-data 0 Jul 15 00:01 access.log -rw-r--r-- 1 www-...
Kodiologist's user avatar
0 votes
1 answer
78 views

Is there any way to get status code (XXX) of Nginx except setting up stub_status page?

I need to monitor Nginx via HTTP response status code (200). Does Nginx have default status code pages either I need to configure stab_status page?
palmasd1's user avatar
0 votes
1 answer
153 views

NGINX server correctly loads /directory/index.php, but when given just /directory, it loads the parent index.php

I apologize if this is a common problem, but I'm stumped and cannot find a solution via Google. Centos 7 Nginx 1.28.0 I have a file /directory/index.php. When I access it directly (https://example....
JBH's user avatar
  • 87
0 votes
0 answers
77 views

How to troubleshoot "Too many open files error" in web server?

I had a server which was based on apache; it was used to serve multiple image tiles of a map. I thought of improving it by shifting it to HTTP3, for this I had to shift to nginx and quick protocol. ...
Ayush Gupta's user avatar
1 vote
1 answer
83 views

NGINX URL rewrite (or something?)

Hosting static content currently and trying to get NGINX to do what I want seems to be a nightmare. I've basically got this setup: root web directory -> pages -> sub-folder > webpage.html I ...
Bloodshot_pico's user avatar
0 votes
0 answers
29 views

Nginx hosted site on new version is not updated even after page reload in some versions of Safari

We have a site hosted on Amazon AWS, using Nginx for file management. However, despite setting headers to disable caching, some Safari browsers still cache the site. The issue is that the site does ...
Andrei Kalenik's user avatar
0 votes
0 answers
37 views

If using a wordpress cache purge plugin, what should permissions and ownership of the Nginx FastCGI Cache folder be when caching files on a ramdisk?

I am runnning an Ubuntu 24.04 LEMP server with Nginx, and Nginx FastCGI Caching. I have 3 wordpress websites, and am using the Nginx Cache Purge Preload plugin for Wordpress. I am caching to a ramdisk ...
DanRan's user avatar
  • 163
1 vote
0 answers
36 views

IPC between nginx and another process

Nginx is used to handle uploading of files in a server (he have registered an action of writting a file, when sent to specific endpoint). There is a master process, responsible for various things, ...
johnkaramp's user avatar
0 votes
1 answer
66 views

Simple Nginx config apparently failing?

Beginner here, running Nginx in a container within Proxmox, I can't figure out why this wouldn't work. I already commented out a portion of the file trying to solve it. The only other configs running ...
willowillow's user avatar
0 votes
0 answers
181 views

How to serve static HTML and proxy WebSocket connections from the same location in Nginx?

I currently live in Russia, where internet censorship is increasingly enforced using Deep Packet Inspection (DPI). To bypass this, I’m building a personal VPN setup using V2Ray with the VLESS + ...
Beginner's user avatar
  • 111
1 vote
0 answers
60 views

Nginx is crashing while using modsecurity under heavy load

I'm using ModSecurity 3.0.12 version. Nginx is crashing during distributed load testing. Load pattern was 4K users, 6 connections/user, 100M throughput. The nginx worker processes are using more and ...
user avatar
0 votes
0 answers
116 views

How to disable CBC Ciphers in nginx on Ubuntu Azure VM

We're running an Ubuntu VM on Azure and a pen test has said that the CBC ciphers are now obsolete and should not be used. I've updated my nginx config but the SSL labs test is claiming that they are ...
David Kelly's user avatar
0 votes
1 answer
97 views

Vulnerabilities in ingress-nginx controller v1.12.2

I was tasked with using ingress-nginx controller v1.12.2 on a Kubernetes Cluster for my org. I scanned it for vulnerabilities with Trivy (github action), and got this report - ┌───────────────────────...
Munish-Soni's user avatar
0 votes
0 answers
75 views

.htaccess to nginx.conf doesn't work

I'm using NGINX to run a wordpress membership site, where I need to restrict access to specific files and memberships, but in order for this to work I must add the following rules to .htaccess: ...
olddog's user avatar
  • 1
0 votes
1 answer
77 views

Nginx TCP steam $ssl_preread_server_name randomly fail to extract host

I'm struggling with a puzzling behavior. I have a TCP streamer in front of: and NGINX site listening to 127.0.0.1:444 a traefik ingress endpoint (:8443) exposing all of my services and a k8s ...
zar3bski's user avatar
  • 145
0 votes
0 answers
44 views

NGINX - API Manager Transport enable (107: Transport endpoint is not connected)

I'm trying to configure a WSO2 API Manager (v4.5.0) cluster behind an NGINX reverse proxy. Below is a simplified view of my NGINX config: upstream sslapi.am.wso2.com { server srvtstwso201.<...
Encher Chourico's user avatar
0 votes
1 answer
46 views

nginx to fwd directory uri

Need one help to configure nginx to redirect url to minio. Ex I want to use url like http://localhost:80/myprojects/dir1 to fwd to http://localhost:9000 Below is my conf file. server { ...
Abhishek Dave's user avatar
0 votes
1 answer
243 views

Using nginx as reverse proxy as single access point to grafana and mlflow with subdomains

I want to host several docker services on a VPS and secure everything using a nginx reverse proxy as single entry point for the publicly available services. The VPS IP is associated with a domain name ...
Blupon's user avatar
  • 103
1 vote
3 answers
167 views

How do I get ngnix to start with downed upstreams with proxy-pass

We're using NGinx on Ubuntu 24.04 as a reverse proxy in front of several incus containers running web applications. We recently had a hardware failure and while we're restoring from backups, we ...
Journeyman Geek's user avatar

1
2 3 4 5
349