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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
95 views

nginx does not forward traffic with TLS v1.1

Im using nginx 1.18.0 on an Ubuntu 22.04 server machine as a reverse proxy. Everything works fine except for one thing. A client uses a desktop application, which sends https requests to a specific ...
cladmin's user avatar
1 vote
1 answer
92 views

Rate limiting PHP requests in the absence of WordPress/WooCommerce cookies in Nginx

I want to rate limit PHP requests in the absence of wp-*, wordpress-*, comment_*, woocommerce_* cookies. I have the following configuration, which works, but it doesn't include the cookie check: http {...
László Monda's user avatar
0 votes
0 answers
52 views

Rewrite URL and add header from the path

Hi how can I rewrite the URL from /context/somerandomtoken/root;id=randomid to this: /context/root;id=randomid then adding a request header: Token : somerandomtoken where somerandomtoken is the value ...
jodevelofer's user avatar
0 votes
0 answers
44 views

routing in kubernetes... nginx proxy-pass, but with named ports

I have an application running in a cluster, where each user gets handed off to an individual pod. All user-pods run on the same port, so a nice simple nginx server can handle that. If we assume that ...
CodeGorilla's user avatar
0 votes
0 answers
52 views

Nginx rewrite proxy_pass SSL

So if I'm running proxy_pass with ssl but with no rewrites then everything work fine. Few lines from Nginx config: location /v3 { proxy_ssl_server_name on; proxy_pass https://example....
Serafim Suhenky's user avatar
0 votes
0 answers
126 views

Create public forward proxies,

I'm eager to set up a process where I can send requests from my a client to mainip:1000, route them through proxyip1 to the internet, and then have the responses return to the main IP and finally to ...
Human Monkey's user avatar
-1 votes
1 answer
112 views

nginx refuses to redirect all 404 pages to my index.html

I want Nginx to redirect all pages that are 404 to my index.html. This nginx is running as a container. Yes I have confirmed nginx is actually being reached as the docker-compose log output shows the ...
Dave's user avatar
  • 287
0 votes
2 answers
91 views

Nginx Server Block Configuration Issue - Conflicting Domains

I have a clean installation of Nginx, specifically version 1.24.0, on my Amazon Linux 2023 server, and I'm facing an issue with the server block configuration. I have three server blocks set up for ...
Sina Nouri's user avatar
0 votes
0 answers
47 views

How to route requests with the same query parameter to the same backend servers?

I have three Nginx reverse proxy servers with ModSecurity installed acting as WAF servers which route requests to my Kubernetes Cluster ingress-nginx, Istio service mesh is installed on the Kubernetes ...
Sinux's user avatar
  • 85
0 votes
0 answers
33 views

All .PHP pages give 5x error in nginx

I followed this guide to install Nginx and PHP on a CentOS server. I am able to do things like php --version and even use the interactive shell. But inside of /usr/share/nginx/html/, I make a PHP file ...
super15's user avatar
1 vote
1 answer
69 views

How to remove amp word from center of url

I removed Amp Module from our site and I need to remove amp word from center of all of urls. Using Nginx Web server for example : mysite.com/shirt/nike?amp=1&product_list_dir=asc&...
peyman peymani's user avatar
1 vote
0 answers
57 views

nginx Failing to Serve Static Files to Flask

I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. On my local host server, ...
AnthonyShea's user avatar
0 votes
0 answers
96 views

logrotate doesn't work even if status shows that the logrotate run on my files

hello guys i have a problem with my logrotate, in the status it shows me that the logrotate run on my files but no logrotate is done each day i don't know why. can someone help please ? I also need to ...
Abdel's user avatar
  • 1
-1 votes
1 answer
21 views

nginx www to non-www https redirect

I am trying to route www.intelehealth.org to https://intelehealth.org however whenever I hit the url www.intelehealth.org it gives me My nginx conf is server { root /var/www/wordpress; ...
Satya's user avatar
  • 116
-1 votes
1 answer
90 views

Nginx reverse proxy for multiple dotnet apps

I have a virtual server hosted out in the cloud running ubuntu 22.04, registered to one of my domains (myapp.com). I also have another domain (mycompany.com) and have pointed it to myapp.com in the ...
Paul Gibson's user avatar
0 votes
0 answers
70 views

nginx: does it generate conflicts if any of the dynamic modules are different?

I have an instance on AWS running Ubuntu 22.04 on which I installed nginx and cloned the instance to build the ngx_purgue_cache module. This is my current nginx output $ nginx -V nginx version: nginx/...
Ale Kenz's user avatar
0 votes
3 answers
155 views

what is the replacement for htaccess files for Azure Web App with PHP>= 8 which now uses nginx?

We are using azure web apps to host a few static HTML pages, which cannot be hosted in Azure Static Web Apps because Azure static Web apps do not support uploading your own certificate. Now we have ...
eos's user avatar
  • 551
1 vote
1 answer
56 views

nginx fowarding 20% (spaces) instead of + in url

I have an NGINX config that takes url's converts them with regular expression, this works fine. The issue is that while forwarding to the new atlassian instance the + from the URL is turned into %20 ...
Joeri_Damian's user avatar
0 votes
0 answers
53 views

When I install nginx on a new CentOS machine, the default nginx page does not load

I have installed nginx on the machine using yum repository. The firewall ports 80 and 443 have been opened and when I try to access the default nginx configuration in the browser using server IP ...
Aashish Agarwal's user avatar
0 votes
2 answers
111 views

What is the best way to redirect port 80 connections to port 8080 with ipv6?

As I understand it, IPV6 is supposed to get rid of this whole port forwarding requirements. However if I want to host a web server on port 80 with something like python or javascript i'd still need to ...
Stanislas's user avatar
0 votes
0 answers
115 views

NGINX TCP reverse proxy resolves queries differently

The Setup I currently have a server and a mongodb database running in the cloud (Oracle Cloud Infrastructure). The Problem My connection to the database is bound by a select number of static IP's. ...
Samuel Cobb's user avatar
0 votes
0 answers
90 views

openssl crash on nginx building ubuntu 22.04

trying this on ubuntu 22.04 sudo ./configure --with-cc-opt='-g -O2 -ffile-prefix-map=/build/nginx-zctdR4/nginx-1.18.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-...
konstantinos Dms's user avatar
0 votes
1 answer
191 views

Renew conf/cert without stop/start nginx docker container

I did implement a docker container with nginx, and can successfully renew SSL certificates with certbot. They are separated containers generated with the codes below. They have an external folder to ...
rd1218's user avatar
  • 37
1 vote
2 answers
307 views

SELinux blocking nginx -t

I'm setting up Rocky Linux and I've run into this error: sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission ...
Blue Nomad's user avatar
0 votes
0 answers
44 views

nginx regex not matching the url

I have an issue with nginx, which after simplifying everything (just a single location directive) reduces to location ~ ^/api/pages/user/.*$ { return 200 "This is a dummy response for /api/user/...
Jeanluca Scaljeri's user avatar
0 votes
0 answers
37 views

How to handle parameters in nginx rewrite urls

I have an URL of this type: https://mydomain.ltd/info/blahblah?cate=blahblah123 And I want to redirect it to this one: https://mydomain.ltd/info/blahblah/blahblah123 Server info / nginx 1.25.1 / php 7....
5GOON's user avatar
  • 1
0 votes
0 answers
40 views

Configure Nginx to serve Wordpress site and Angular app with same domain

I'm newbie with Nginx and server configurations. I'm trying to deploy a Wordpress web and Angular 2 webapp (each project in a different folder/path) using the same domain and configured by Nginx. For ...
Rubén's user avatar
  • 1
0 votes
1 answer
39 views

What kind of certificate (signed by public authority) is needed for mTLS?

I have nginx setup with mTLS with manually created CA certificate in virtual host. For SSL we use Let's encrypt. ssl_client_certificate /etc/ssl/ca.crt; ssl_verify_client on; I am able to connect to ...
knagode's user avatar
  • 151
0 votes
0 answers
68 views

nginx - can't reach status endpoint on localhost

I try to setup the nginx exporter for prometheus but have difficulties with the proper configuration of my nginx. I have a default server block that redirects all requests from port 80 to 443. So all ...
andymel's user avatar
  • 211
0 votes
1 answer
103 views

CPU for Static File Serving

Let's think we have 10 concurrent users per second on the Nginx server which serves only static files: html, css, js. This is not CPU CPU-intensive operation, but still, Nginx will consume some CPU ...
doraemon's user avatar
  • 141
0 votes
0 answers
72 views

IIS resets TLS handshake with nginx reverse proxy

I am using 2 synchronized IIS servers (as backend for failover) and an nginx reverse proxy (as frontend). Both IIS servers have identical configuration and websites (due to sync). All websites are ...
cladmin's user avatar
0 votes
0 answers
437 views

mTLS with NGINX & Let's encrypt - 400 The SSL certificate error

I use nginx and let's encrypt. Server is running on server.io. I need to setup mTLS and therefore I need client certificate as well. I created another Let's encrypt certificate for client.io (I used ...
knagode's user avatar
  • 151
0 votes
0 answers
47 views

How to config NGINX such that I can call https://<MY_DOMAIN>:<MY_PORT>/<URI>/

What I am trying to DO: I have a QNAP NAS on which I am trying to set up my NGINX via docker such that I will be able to add multiple services on my home server. What I am trying to do now is to set ...
Mircea's user avatar
  • 101
1 vote
1 answer
38 views

Nginx subdomain to subdomain redirect not working

The config below redirects to .another-domain.com with empty subdomain name. What am I doing wrong? server { server_name ~^(\w+)\.domain\.com$; location / { rewrite ^ $scheme://$1.another-...
Vladimir's user avatar
  • 135
0 votes
0 answers
59 views

NGINX fails to connect to Nextcloud instance

I have a server running proxmox with 3 VMs: NGINX, Bitwarden and Nextcloud. Bitwarden works fine which proves that NGINX is working ok, however when NGINX tries to connect to Nextcloud it will result ...
verumIgnis's user avatar
0 votes
1 answer
287 views

Is it possible to use HTTP/3 with NGINX-Node.js combination already?

NGINX supports HTTP/3 since 1.25.0. Node.js currently does not support HTTP/3 or QUIC out-of-the-box but it seems there are some C++ addons implementations, like FAILS'. HTTP/3 (more specifically, ...
Levi Pesin's user avatar
0 votes
0 answers
109 views

Cant connect a QNAP NAS and other services through NGINX

I run my QNAP NAS on this link -> http://192.168.0.98:8085/cgi-bin/ And the other service is this case is Jellyfin on this link -> http://192.168.0.98:45081 My NGINX config looks like this: ...
Mircea's user avatar
  • 101
-1 votes
1 answer
52 views

Nginx configuration for wordpress site in folder

I want to setup a wordpress site in a folder on my current site. I have a main app running, but I want to route all the requests that start with /folder to that wordpress site, that it's located in a ...
Diogo Gomes's user avatar
0 votes
0 answers
71 views

Create letsencryot ssl for both IPV4 and IPV6 + reverse proxy

i have a vps with ipv6 ::ffff:8b3b:e2ee and 139.59.226.237, i plan to add ssl to my ipv6 and using nginx with reverse proxy to other ip https://139.59.226.237. If i dont include [::]:80 and [::]:443, ...
Nonton Film Drama's user avatar
0 votes
0 answers
41 views

err_too_many_redirects in nginx subdomain config

I was trying to config my subdomain www.chat.feromonn.com but in browser its giving message "too many redirect" Please let me know what i am making mistake : server { listen 80; listen [:...
Samiul's user avatar
  • 101
0 votes
0 answers
53 views

How do I remove a prefix from an NGINX proxy_pass (rewrite doesn't seem to work)?

I have the following... version: '2' services: main-nginx: image: nginx:latest container_name: nginx volumes: - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf - ./nginx/...
Jackie's user avatar
  • 171
0 votes
2 answers
137 views

Nginx try_files succeeds on deleted files, then nginx reports error with open()

I have this weird error that is happening where try_files directive successfully finds a file that was just deleted, then nginx proceeds to open the file and returns an error. I am using a standard ...
BigWhale's user avatar
0 votes
1 answer
75 views

nginx in front of Rails

We want to put nginx with mTLS in front of our Rails app. We want that mTLS is turned on only if request goes trough specific domain. E.g.: I want that https://mypage.com works without mTLS, however I ...
knagode's user avatar
  • 151
0 votes
1 answer
48 views

mTLS on Heroku with Rails

We currently host on Heroku and we need to implement mTLS in front of our Rails app. What is a good strategy to achieve this? It seems like we need reverse proxy which knows how to deal with mTLS. ...
knagode's user avatar
  • 151
0 votes
0 answers
52 views

Nginx uses an upstream name instead of an IP

I have an Nginx server. I have configured upstream. In the test environment under tests everything works well. But I just implemented this in production where there are more requests. I started ...
Виталий Федоренко's user avatar
0 votes
1 answer
96 views

Nginx add_header only works when content type specified

I've got a location block in my Nginx config. looking like this: location ~* "/Record\.([A-Za-z0-9]{4,6})$" { add_header Link "https://doi.org/xx.xxxxx/Record.$1; rel='cite-as'&...
knirirr's user avatar
  • 129
1 vote
1 answer
99 views

Updated upload_max_filesize and post_max_size in php.ini but still cant upload large files

I am using a Laravel based app on Ubuntu 22.04, Nginx, php8.2-fpm. I have deployed the same app on 2 other servers but they use Ubuntu 20.04 and php8.1-fpm. In each case I updated the php.ini of both ...
andygozindy's user avatar
0 votes
1 answer
290 views

Nginx as forward proxy for secure LDAP

I need help building a forward proxy for secure LDAP. A client connects to a TCP proxy and request must be redirected to a secure LDAP at TCP 636. [client]------->[localhost:636 Nginx-proxy]----TLS-...
Michael Chudinov's user avatar
0 votes
0 answers
83 views

Nginx virtual host with a subdirectory with rewrites

I have a Debian 12 + Nginx 1.22 + PHP 8 server with the following files structure: /home/www/ └───example └───mysubwebsite The corresponding nginx vhost conf file for "example" is: ...
bolino's user avatar
  • 275
0 votes
1 answer
50 views

How does NGINX Plus handle server failure when doing session persistence for TCP/UDP communication?

My understanding from the NGINX Plus documentation is that their Load Balancing will route around servers that are down or swamped and that Session Persistence attempts to maintain the same server for ...
Sean Duggan's user avatar