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
27 views

MIXED CONTENT/CSP issue from (VPS) nginx reverse proxy with termination SSL and (HOME) nginx wordpress

It's been few day as I try to figure out what I'm doing wrong. DNS points to VPS on VPS I have nginx reverse proxy with ssl termination that forward request to home server on home server I have nginx ...
Va_ni_tas's user avatar
0 votes
1 answer
36 views

Nginx automatically redirect to add a trailing slash

In my nginx config i have a location block for a subpath: location /documentation { alias /usr/share/nginx/html/documentation; index index.html; try_files $uri $uri/ /...
Jonas Stasseyns's user avatar
0 votes
0 answers
25 views

Nginx serves wrong DocumentRoot

I have an NGINX reverse proxy with Apache running on Linux22. My goal is to serve a file in a new documentroot, but for whatever, the Nginx Default conf serves the old apache2 index file. The ...
IHateCoding's user avatar
0 votes
1 answer
34 views

Nginx not logging after Logrotate

I've a nginx reverse proxy with custom log files (depending on hostname) pwd : /var/log/nginx/domain/fqdn.(log|err) Since some time (maybe after switching to Ubuntu 23.10), my log files are very often ...
guillaumearnx's user avatar
0 votes
0 answers
14 views

nginx custom log format to log header value when exists

environment setup I have nginx webserver and simple backend application. this backend app has custom response header in certain condition (for example: X-Real-Status) and it's running behind nginx as ...
sadegh mohebbi's user avatar
0 votes
0 answers
36 views

redash configured behind nginx conf file with server location is duplicating the url path

My nginx conf file entry for redash location /redash/ { sub_filter ="/" ="/redash/"; sub_filter ="/static/ ="/redash/static/; sub_filter ="/ldap/ ="/...
Raj's user avatar
  • 1
0 votes
0 answers
56 views

502 Bad Gateway after SSL installation on Nginx and Django

I have a 502 error on my vps after I installed SSL certificate. systemctl status nginx.service: ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/...
mrdlgz's user avatar
  • 1
0 votes
0 answers
30 views

Limit Nginx Proxy redirection to a specific page and action

I have a server that hosts several docker services, some of them are exposed to internet using Nginx Proxy Manager. I want to create a proxy host for a specific page of a service, and only for this ...
Guillaume's user avatar
0 votes
1 answer
51 views

Nginx container running inside docker on custom network allow / deny not working

I have a docker compose file with this in: nginx-proxy: image: nginx:1.18.0-alpine restart: always ports: - "80:80" - "443:443" networks: - ...
webnoob's user avatar
  • 465
0 votes
0 answers
49 views

How to host applications on separate paths of a subdomain?

I have two application "foo" and "bar" running on ports 4560 and 4570 respectively. Both of them have paths that look like /api/v1/hello and /api/v1/world. I'm trying to access ...
Saurabh's user avatar
  • 101
-1 votes
1 answer
71 views

System slow to respond to request. What to do?

I have an application container behind an Nginx reverse proxy. When I access the application via https, the POST request returns 302 and then the GET returns 200. See monitoring via browser: Request ...
campos's user avatar
  • 115
0 votes
1 answer
78 views

Cannot figure out which NGINX config file is being used

Inside /etc/nginx/sites-available, I have a config file example with the following configuration: server { listen 443 ssl; server_name php1.example.com php2.example.com; ssl_certificate /...
Uvais Hassan's user avatar
0 votes
1 answer
98 views

Connecting Nginx Server to OpenVPN and Accessing it from the Internet

I have an Nginx server running on my local network, and I want to make it accessible from the internet via an OpenVPN connection. Here are the details of my setup: Ubuntu Server Local IP Address: 192....
Daqs's user avatar
  • 101
2 votes
1 answer
98 views

Nginx webserver not available with global IPv6 Address

Recently I changed my ISP, which doesn't give out any public IPv4 addresses (CGNAT) without a monthly charge, which is the reason that I am changing the configuration of my webserver (Ubuntu 22.04 &...
ITpro_LX's user avatar
0 votes
0 answers
51 views

Attempting to access Nginx from www (public internet network)

I have Nginx running successfully on my local network. Before I proceed with the question, here are the IP addresses: Ubuntu Server Local IP Address: 192.168.29.110 Internet IPv4 IP Address: 45.8....
Daqs's user avatar
  • 101
0 votes
1 answer
46 views

Unable to enable specific cipher suites in Nginx

I have a piece of hardware with an outdated list of default cipher suites. We update that list via configuration, but to get the configuration it first needs to talk to a provisioning server. I've ...
miken32's user avatar
  • 954
0 votes
2 answers
58 views

How I can add GET query parameters to an Nginx proxy?

I have PDF files in Azure. The links are like: https://testtestsitweu.blob.core.windows.net/publicfiles/MyTest/doc.pdf?sp=rl&st=2024-02-15T14:18:59Z&se=2025-02-15T22:18:59Z&spr=https&...
ilhan's user avatar
  • 288
-1 votes
0 answers
33 views

How can I use ssl on one domain for two ports 80 and 7070 for example Nginx?

Good afternoon, maybe we can solve the problem. I have two applications on the same domain, but on different ports. SSL works on port 80, but for port 7070 SSL does not work. I have a spring server on ...
GameForYouOnline's user avatar
0 votes
0 answers
65 views

Does anyone have a "best practices" guide for nginx with http3/quic?

I've got quic working (verified by https://http3check.net/), but found that my site's upload speed was crippled as a result. I've since added http3_stream_buffer_size 1m; (default is 64k) and speeds ...
Codemonkey's user avatar
  • 1,108
0 votes
1 answer
59 views

403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature

I was told that I can serve static content (.pdf and .docx documents) from Azure. First I have tried to get list of my PDFs from this "Blob SAS URL" link: GET https://testtestsitweu.blob....
ilhan's user avatar
  • 288
0 votes
0 answers
34 views

Safest way to configure `max_fails` in Nginx reverse proxy

We have nginx as a reverse proxy, load balancing across 2 application servers. These application servers were defined in upstream blocks like so: upstream app_backends { server 1.1.1.1:...
Robin Winslow's user avatar
1 vote
1 answer
51 views

Non https requests getting redirected to 302 while making api call from client side, even https requests go to 302

Any Request made from API client to server giving 302 for exmaple https://app.ardracloud.com/api/deviceconnect or http://app.ardracloud.com/api/deviceconnect returns 302 server { listen 66.66....
Online Works's user avatar
1 vote
1 answer
111 views

Can't get nginx resolver to work

I'm facing issue with nginx when a container in network change his IP , i can access it in Linux OS But nginx didnt resolve the new IP... I searched alot about a solution and i see that nginx tell us ...
Rafael darkxp's user avatar
1 vote
0 answers
42 views

Traefik, docker swarm and portainer. Serving robots.txt file

I'm playing around with my homelab and I'm trying to include robots.txt file. I'm launching traefik and portainer using this docker_compose file. This is using Docker swarm mode version: "3.3&...
Adam Radomski's user avatar
0 votes
3 answers
133 views

Omit repetition in nginx configuration for subfolders as websites on same domain

I have a Debian webserver with a main /var/www/mymainwebsite served on the URL http(s)://mydomain.com, and many independent web projects also in /var/www (/var/www/mywebsite1, /var/www/website2, etc.) ...
bolino's user avatar
  • 275
0 votes
0 answers
48 views

NGINX Reverse Proxy Server sending RST to upstream and FIN to downstream after 5 Minutes of inactivity

My current nginx setup always kill the TCP connection after 5 minutes of inactivity, i.e no transaction. I have this setup which requires TLS1.2 connection connecting from my internal network [client ...
user23408423's user avatar
0 votes
0 answers
34 views

AWS ALB: Are Sticky Sessions possible with TCP?

I need to load-balance my clients. Some of these clients use TCP/TLS, the rest HTTP/HTTPS. The target services of the load balancer can be in either EC2 instances or ECS containers. Also, the clients ...
Harry's user avatar
  • 443
0 votes
0 answers
41 views

Nginx - TooManyRedirects when removing trailing slashes and accessing folders

For our static content we added a redirect rule, to remove slashes at the end of those urls. That was done for seo reasons and worked fine. Now, we recognized, that when you try to access folders (...
Carl Mahnke's user avatar
1 vote
1 answer
66 views

Unusual Output in Nginx Status: Seeking Insights on Empty Strings in Process Information

My Nginx server (Ubuntu 22.04 LTS) is operating as expected, and I am not aware of any issues. However, I have noticed an unusual output in the status information: sudo systemctl status nginx ● nginx....
kekw's user avatar
  • 113
0 votes
1 answer
133 views

nginx on azure remote server works with simple index.php but not on project

I'm trying to deploy a project on an ubuntu 22.04 LTS azure remote with nginx. First I tried to deploy a simple index.html. It worked well. Then, I tried to deploy a simple index.php. It didn't work ...
Miguel Angel Guaita's user avatar
0 votes
0 answers
51 views

subdomain redirect best practices

I'm setting up a site served by Nginx on FreeBSD. The only content is at sub.example.net, and I'd like to 301 any requests to example.net, www.example.net, and www.sub.example.net. My current solution ...
MonocleRB's user avatar
  • 101
0 votes
0 answers
16 views

Apache2 send response while waiting for HDD to spin up

I have an Apache 2.4 Server that hosts static files. One directory (example.com/) is on the SDD (System-drive) and anotherone is on an external HDD (example.com/ef/). My Problem is that because my HDD ...
Der Müller's user avatar
0 votes
0 answers
17 views

Nginx if-directive condition based on upstream fallback?

I have just passive health-checks on some upstream servers. If they fall back to backup server, I need a way to act differently in the server block (with an if condition). Is there some technique or ...
Jason Kleban's user avatar
0 votes
0 answers
72 views

Intermittent Nginx SSL handshake error

I have an Ubuntu server running nginx that forwards requests to a AWS elastic beanstalk environment running an API (partial migration, work in progress). I am seeing intermittent SSL handshake issues ...
user2319914's user avatar
0 votes
1 answer
35 views

Only Https Post requests failing with cloudfront and ec2 instance running nginx reverse proxy

I am running a nodejs server on ec2 on port 3000. In order to connect it to internet, I am running a nginx server to proxy requests from port 80 to 3000. I have a ec2 domain "http://ec2-xxx....
AlwaysHungrie's user avatar
0 votes
1 answer
97 views

Can't stop attack on nginx server

I'm currently struggling with my Digitalocean droplet (Ubuntu 22.10) which is under some sort of attack (maybe DDOS). The server hosts a containerized application that runs on nginx. Every time I ...
Gianmarco Santi's user avatar
0 votes
0 answers
37 views

Changing nginx default log format sometimes doesn't work

I've recently set up fail2ban to work with my custom nginx logging format (called "main"), I have all my sites logging to a different *.access.log file. I still had to change the default ...
user9503's user avatar
0 votes
1 answer
39 views

nginx rewrite rule error: invalid number of arguments in "location"

I have an nginx rewrite rule for WebP images that the docs for a plugin said to add, but it's causing the error "invalid number of arguments in 'location'". My hosting support wasn't able to ...
Gavin's user avatar
  • 103
0 votes
0 answers
71 views

socket() failed (24: Too many open files) while connecting to upstream

fs.file-max = 70000 added into /etc/sysctl.conf nginx soft nofile 10000 nginx hard nofile 30000 added into /etc/security/limits.conf worker_rlimit_nofile 30000; adding this ...
Ulugbek's user avatar
0 votes
1 answer
30 views

Nginx - IP server in url works, domain not, how I solve this?

I am hosting a React web app on a VPS server and im using Nginx to host the React. While I can access the website via the IP in the browser's URL, it doesn't work when using the domainexample.app. My ...
Guilherme Leonardi's user avatar
0 votes
1 answer
81 views

Cross-realm Kerberos/SPNEGO configuration with multiple domain controllers and multiple application servers

I am currently struggling to scale my one-to-one simple Kerberos/SPNEGO configuration for multi-server environment and looking for some help. Let's say I have two Active Directory domains and two ...
nknikita's user avatar
0 votes
0 answers
16 views

Configuring Nginx Amplify when you are running multiple domains in same Server

I am using Nginx As API gateway. Same Ngnix is connected to multiple domains. when I have tried configuring Ngnix Amplify for getting Ngnix Metrics Dashboards. I am getting metrics at whole server ...
Akhil Surapuram's user avatar
0 votes
0 answers
68 views

Error 405 with 'PUT' on nginx

I'm testing my API and both GET and POST methods are fine, but when I try PUT or DELETE it gives me the 405 error message. Im using PHP 7.3 Mysql nginx 1.25.3 on docker and testing with postman I've ...
Matheus Tambosi's user avatar
-1 votes
0 answers
25 views

nginx config for binary requests on port 80 or 443

nginx running on Ubuntu 22.04 I have a lot of requests with raw binary data in them. nginx gives them status code of 400. For example: 170.64.128.231 - - [04/Feb/2024:11:14:19 +0000] "\x05\x01\...
JohnA's user avatar
  • 99
0 votes
0 answers
43 views

nginx map to different locations inside a location

Environment: webdav server running on localhost:10001 nginx server running on port 80 Goal: nginx needs to have a single external /webdav location GET requests need to be served by the nginx ...
LinG's user avatar
  • 101
0 votes
1 answer
33 views

Changes done in mysql backend database not getting reflected neither on frontend website nor inside the server [closed]

https://stackoverflow.com/questions/45920596/update-made-in-mysql-database-does-not-reflect-on-the-webpage I've curled inside the server itself and still the updated data was not received. I've: ...
barnyard9's user avatar
0 votes
1 answer
15 views

IP Filter for REST API does not work behind load balancer for Ant Media Server (Tomcat 10)

I'm using Ant Media Server and I have one load balancer and Ant Media Server instances running behind the load balancer. I want to access to the Ant Media Server REST API by whitelisting my IP address ...
faraway's user avatar
  • 111
0 votes
1 answer
58 views

Getting Nextcloud and Wordpress Image behind a location in NGINX

setting up my Dockered Applications (wordpress nextcloud) behind a reverse proxy location in NGINX if i use NGINX location / wordpress runs out of the box and nextcloud after some configuration in ...
naseweis's user avatar
0 votes
1 answer
35 views

Forem forum software in Docker can't be reached from Nginx in Ubuntu

I am trying to run the Forem forum software in Docker via Dokku. I was following this guide: https://dev.to/akhilnaidu/self-hosting-forem-dev-on-linux-using-t2d-2kgh The A record of the domain ...
Petr Břeň's user avatar
0 votes
0 answers
21 views

How can I match all of the URLs that have extensions in Nginx

I want to have two different location directives, one for all URLs that have extensions, and one for the rest of them. I tried this: location ~* ^/[^\.]*\.[^/]+$ { root /$Organization/...
Ali Radan's user avatar

1
2 3 4 5
344