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.
17,207
questions
0
votes
1
answer
115
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:
- ...
0
votes
0
answers
53
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 ...
-1
votes
1
answer
82
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 ...
0
votes
1
answer
90
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 /...
0
votes
1
answer
186
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....
2
votes
1
answer
125
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 &...
0
votes
0
answers
64
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....
0
votes
1
answer
69
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 ...
0
votes
2
answers
84
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&...
0
votes
0
answers
116
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 ...
0
votes
1
answer
160
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....
1
vote
0
answers
73
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:...
1
vote
1
answer
56
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....
1
vote
1
answer
144
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 ...
1
vote
0
answers
60
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&...
0
votes
3
answers
140
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.) ...
0
votes
0
answers
100
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 ...
0
votes
0
answers
56
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 ...
0
votes
0
answers
52
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 (...
1
vote
1
answer
73
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....
0
votes
1
answer
143
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 ...
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 ...
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 ...
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 ...
0
votes
0
answers
97
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 ...
0
votes
1
answer
76
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....
0
votes
1
answer
123
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 ...
0
votes
0
answers
52
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 ...
0
votes
1
answer
43
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 ...
0
votes
0
answers
142
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 ...
-1
votes
1
answer
123
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 ...
0
votes
1
answer
139
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 ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
117
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 ...
0
votes
0
answers
57
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 ...
0
votes
1
answer
41
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:
...
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 ...
0
votes
1
answer
66
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 ...
0
votes
1
answer
37
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 ...
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/...
1
vote
2
answers
133
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 ...
0
votes
2
answers
90
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 ...
0
votes
4
answers
160
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 ...
0
votes
0
answers
73
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 ...
0
votes
0
answers
60
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 ...
0
votes
0
answers
39
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/...
0
votes
2
answers
70
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 ...
0
votes
1
answer
103
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 ...
0
votes
0
answers
47
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, ...
-1
votes
1
answer
69
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 ...