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
-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
106 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
129 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
53 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
54 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
125 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
54 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
138 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
76 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
44 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
49 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
70 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
138 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
53 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
20 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
88 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
63 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
114 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
41 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
40 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
117 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
-1 votes
1 answer
121 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
114 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
17 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
92 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
0 votes
0 answers
53 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
40 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
  • 101
0 votes
1 answer
22 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
63 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
36 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
25 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 vote
2 answers
118 views

How to use OCSP validation for upstream server certificate in NGINX/Apache reverse proxy

I have an application that needs to make HTTP requests to a remote server. The connection should be secure using TLS. Due to external specification the application must validate the presented server ...
Rosso's user avatar
  • 111
0 votes
2 answers
86 views

How to Tune Virtualmin Website for High Traffic? (Alt: How to defend against DoS?)

I have a website running on PHP-FPM/Nginx/MariaDB, hosted through Virtualmin on an 8GB RAM, 4 core Xeon 3.1ghz CPU, hidden behind Cloudflare. Recently, we've had a number of simple DoS attacks, a ...
Ali's user avatar
  • 1
0 votes
4 answers
136 views

NGINX Reverse Proxy configuration not working

i have a Nginx Front End Server running on Centos9 on 10.0.100.6 and different docker Containers in the backend. The docker container working fine i can acess them ez via port number BUT my nginx ...
naseweis's user avatar
0 votes
0 answers
63 views

Files uploaded through nginx reverse proxy fail with timeout

Small (less than 20kb) files upload without issue, anything larger results in the timeout limit being hit and a 504 response. nginx config has a large enough client max body size, timeout values don't ...
user3930869's user avatar
0 votes
0 answers
53 views

NGINX listing is correctly configured to accept HTTP traffic, but reciving 'The plain HTTP request was sent to HTTPS port' 400 error

We have some IIS sites hosted locally on some servers which we are upgrading. These sites need to be accessed by both HTTP and HTTPS, both on the new and old servers. We have assigned unique port ...
happybovine's user avatar
0 votes
0 answers
37 views

uWSGI with nginx bad gateway error

So I'm trying to host my django app with nginx and uwsgi but i keep running into a 502 bad gateway error. I have the following nginx config. upstream django { server unix:///home/david/...
david backx's user avatar
0 votes
2 answers
63 views

Quasar (VueJs), nodeJs, Nginx certbox Too many requests

I have following nginx conf for my quasar(VueJs app) and nodejs (as API) app As you can see my nodejs app is in /api location, the rest of config is for my Quasar (vuejs) app... The problem I have is ...
Valor_'s user avatar
  • 127
0 votes
1 answer
101 views

VMWare Ubuntu - How to access a docker container in Ubuntu while also running nginx

I am running Ubuntu 22.04.3 LTS in a virtual machine. I installed Nginx with port 80. When accessing http://localhost:80, the normal website is displayed by Nginx. I then installed docker and two ...
Rogerio Martinez's user avatar
0 votes
0 answers
41 views

Nginx force revalidate stale cache after timeout

There is a case in Nginx reverse proxy cache usage, when; proxy_cache_background_update on; proxy_cache_use_stale updating; For the same URL if a single response comes from the upstream with max-age, ...
Rockybilly's user avatar
-1 votes
1 answer
63 views

nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/default.conf:1 in angular 15?

Iam facing with this error, nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/default.conf:1 Docker File: FROM artifactorycloud.ual.com/v-docker/node:16 AS ...
Kapil Soni's user avatar
1 vote
2 answers
161 views

NGINX BoringSSl HTTP3 ERR_CONNECTION_REFUSED

An ERR_CONNECTION_REFUSED error occurs in Google Chrome v.120 while trying to leverage HTTP/3 via Nginx 1.25.3 + BoringSSL. No errors, neither debug messages are found in logs while nginx-debug is on, ...
Petro Prots's user avatar
0 votes
1 answer
25 views

nginx install wordpress on /blog under my domain address

I have a domain example.com, it serves my website using nginx webserver that points to a nodejs docker container 3000 port using proxy pass option under / location. server { listen 80 ...
Mahdi's user avatar
  • 1
0 votes
0 answers
26 views

How to config NGINX with php so as to not be "root" location

I have Nginx configured to work with AgenDAV and baikal. As long as I use the '/' location, it all works fine. Here is the config for that server { server_name _; root /agendav/agendav-2.6.0/web/...
Rob Collins's user avatar
0 votes
1 answer
411 views

How to enable nginx modules in docker image

I have an nginx config which starts as follows load_module modules/ndk_http_module.so; load_module modules/ngx_http_set_misc_module.so; load_module modules/ngx_http_headers_more_filter_module.so; ...
Jeanluca Scaljeri's user avatar
0 votes
1 answer
85 views

www-data nginx permission django no read access

I followed this guide to setup my Django application to work with my nginx webserver. However upon testing I discovered that www data group did not have access to my applications static files and ...
darkrai's user avatar
1 vote
3 answers
521 views

Permission denied for unix socket mounted in docker container as volume

I try to containerize my nginx running currently on my server. For this I created the following docker compose file: version: "3.8" services: nginx: image: nginx:stable-alpine ...
TiMESPLiNTER's user avatar
0 votes
0 answers
135 views

nginx: redirect to docker containers with https enabled

I have two containers running in an EC2 instance, the first uses port 4200 and the second 8188. I also have a domain name "my-domaine.com" connected to my EC2 instance. I'm aiming to reach ...
SlimenTN's user avatar
  • 101
0 votes
0 answers
127 views

Install correctly an website on nginx but showing 'Cannot GET /'

I am actually using a php website connect to another nodejs server like client side server side. After many error and fix I get the error 404 Cannot GET / Like the server want to get the index.php ...
HowYouDoIt's user avatar