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
0 answers
19 views

Can't enable a Nginx dynamic module

I'm new in Nginx and just learning it. I've installed Nginx on a server (Ubuntu) from source. Now I need to enable an additional dymanic module there. I do this: ./configure --with-...
Pandemic's user avatar
1 vote
0 answers
27 views

NGINX Rate Limiting Configuration Leading to 404 Error for Specific Route in Plesk-Managed CakePHP App

I'm using Plesk 18 with NGINX as a proxy in front of Apache2 for a CakePHP application. I have set up rate limiting in my NGINX configuration (/etc/nginx/nginx.conf) with limit_req_zone $...
magic.77's user avatar
  • 111
0 votes
0 answers
20 views

Can I ignore certain visitors when using Goaccess?

I want to use goaccess to see how many real visitors my website is getting. Unsurprisingly my logs are filled with traffic from bots so I'm looking for a way to filter that out. In the interests of ...
Matt's user avatar
  • 322
0 votes
0 answers
16 views

Flask-SocketIO Performance Bottleneck - QueuePool Overflow After Upgrade

I'll try to keep this brief, but I have a lot of code examples to show. Please let me know if you need more context! We recently updated our flask server to handle web socket connections using flask ...
maximosis's user avatar
0 votes
1 answer
75 views

Nginx Wildcards and Subdomains with Certbot

I want to achieve a scenario where *.dev.domain.app => Localhost 3000, dev.domain.app => Redirects to Localhost 3000 *.domain.app (anything but dev) => Redirects Localhost 5000 domain.app =&...
Kubi's user avatar
  • 101
0 votes
0 answers
51 views

Optimize load balancer SSL termination on a Windows machine

I have an application on a 32-bit Apache server on a Windows machine from a 3rd party vendor. (Can't change that). The setup: Traffic is HTTPS, port 443. Apache web app service Activemq service ...
justadev's user avatar
  • 453
-1 votes
1 answer
17 views

Nginx error "upstream prematurely closed FastCGI request while reading upstream" with generated file download

I just spent the whole day trying to figure out this error. We have a PHP script that generates a file for download. After upgrading nginx (1.16 -> 1.24), this script suddenly started randomly ...
Martin Mystik Jonáš's user avatar
0 votes
2 answers
40 views

Aws ubuntu nginx installed. IP cannot be reached

i have launched aws ec2 intance with ubuntu ami & inbount rule of all traffic. inbound rule all traffic .connected to instance and entered code below to install nginx sudo apt update sudo apt ...
MUHAMMED SWADHIQ VK's user avatar
0 votes
0 answers
8 views

Alternative solution to Kubernete ingress rules for 404 resource error

For two days I was plagued by the following scenario: We have a kubernetes cluster (Rancher GUI) where within a namespace I will host a few different services. I wanted to set up an ingress controller ...
chimp.society's user avatar
0 votes
0 answers
14 views

Setting up an alternative domain for an entire cluster

I have an openshift cluster set up with a hosted application (Maximo Application Suite) I'm attempting to set up an alternative domain for said cluster. I want to keep the default routes and not ...
Price's user avatar
  • 1
0 votes
0 answers
20 views

ERR_TOO_MANY_REDIRECTS when setting up NGINX proxy in front of NGINX proxy and moodle in k8s

I have a pod running moodle and it has NGINX in front of it. The configuration of it is here: https://github.com/google/moodle-on-gcp/blob/main/4-moodle-image-builder/base/etc/nginx/nginx.conf In my ...
Foobar's user avatar
  • 101
0 votes
0 answers
21 views

Zabbix Logfile monitoring doesn't work

I am trying to set up Zabbix monitoring for a nginx webserver. The file is located in /var/log/nginx/accesss.log. I also already modified the access rights and checked that the zabbix agent on the web ...
Tom's user avatar
  • 1
0 votes
1 answer
84 views

use of variable to configure proxy_pass fails. why?

What am I misunderstanding about nginx variables and how they work? The first location /atlas/ fails to send the request to the upstream server with the following nginx error: backoffice | 2024/03/12 ...
jonseymour's user avatar
1 vote
1 answer
36 views

Invalid response from .well-known/acme-challenge/<token> : 404 + nginx

I have seen these questions (^,^,^,^), but unfortunately none of them could solve my problem. I'm trying to use certbot to obtain an SSL certificate for one of my subdomains. However, the challenges ...
Arani's user avatar
  • 338
0 votes
1 answer
43 views

Run PHP-FPM as other user

I have been using a setup that I created for several years on various machines and I am now trying to run it on a Debian 12 server. The setup is similar to a forge and can be found on this URL https://...
Matz's user avatar
  • 101
0 votes
0 answers
26 views

Install SSL Certificate for Docker Container on EC2

We are running an NGINX Server on a Docker Container which is hosted on an EC2 instance. Our Domain is registered with Amazon Route 53 but it seems like, there is missing an SSL Certificate on Docker ...
Flo Sojer's user avatar
-3 votes
1 answer
38 views

Making production-ready + securing a server (Ubuntu 22.04, NodeJS, nginx)

I started working for a startup as a full stack developer. The product is a SaaS that has been developed by an external company, and they take care of the hosting as well. My boss wants the app on our ...
Sam Leurs's user avatar
  • 105
0 votes
0 answers
19 views

Can't get rid of port in Nginx [closed]

I'm trying to configure a server with some shiny apps. I've changed my internet connection and I had to configure a ddns with no-ip. So far so good. Now I'm configuring the Nginx file, which used to ...
César Arquero Cabral's user avatar
0 votes
1 answer
32 views

Server works over IP with port but not domain and port

I have plugged CloudFlare to my server and redirected domain to its' nameservers. The default domain sends the typical "Server Down" website from CloudFlare - which is fine, because I have ...
J K's user avatar
  • 3
0 votes
1 answer
25 views

Guacamole Shared Drive with Nginx proxy

I have an Apache Guacamole bastion. I use it to administer Windows servers. I use the shared disk to upload files. However, I have an upload problem. When I'm connected to Guacamole live, uploading ...
Benoît's user avatar
  • 103
0 votes
0 answers
17 views

PHP sock linked to update-alternatives choice?

In my nginx configs, I point to PHP as /var/run/php8.3-fpm.sock. Because there is a specific version in that path, using update-alternatives does not change the PHP version my websites use. How do I ...
ᴍᴇʜᴏᴠ's user avatar
0 votes
0 answers
56 views

Nginx Fails To Start After Update To 1.25.4 - could not build optimal server_names_hash, then zero size shared memory zone "one"

I just updated nginx to 1.25.4 on one of my Ubuntu Linux 20.04.6 servers and it is now failing to start. Errors I am getting are as follows: 2024/03/07 12:46:28 [warn] 29836#29836: could not build ...
svet0slav's user avatar
1 vote
2 answers
193 views

nslookup returns SERVFAIL error from local DNS

I'm configuring Nginx and local DNS settings on Ubuntu 22.04. The DNS server running on Docker has an error. When resolving a domain name, the Docker DNS server returns, SERVFAIL. nslookup ns.main....
juanthehuman's user avatar
0 votes
0 answers
20 views

In nginX, how to rewrite files without extension?

I have lots of image files without an extension (no .png, .jpg, .etc) in the Wordpress uploads folder (/wp-content/uploads/2024/). These do appear in articles and are used, but due to the missing ...
Johnny Bravo's user avatar
0 votes
0 answers
26 views

Change server header on all endpoints (Flask + Nginx + Gunicorn)

I'm working on a Flask app that uses gunicorn and nginx and should hide its server header, so I managed to do it only for the homepage, like this: gunicorn.conf.py import gunicorn gunicorn.SERVER = '.'...
Juan C's user avatar
  • 113
0 votes
0 answers
30 views

Using proxy with another SSL certificate when connecting to app

There is an app that has configured a SSO throughout Keycloack server (Keycloack is mine). Let's assume that you can reach the app via https://www.example.domain.com. Now, I don't have access to the ...
PastorPL's user avatar
  • 101
0 votes
1 answer
76 views

NGINX 403 ACCESS DENIED

I have this problem in nginx, it is a Laravel application. but it is in a user's folder /home/user/projects, I already tried with 777 nginx owner of the folders but it still shows the error FastCGI ...
Pablo Vazquez Alvarado's user avatar
1 vote
0 answers
65 views

I can't open X-UI panel address installed on my oracle ubuntu server

I have installed x-ui panel and it shows it's up and running on my server, but when I try to access my server_ip:specified_port_for_x-ui it says connection time out or the site can't be reached. I ...
user3486308's user avatar
-1 votes
0 answers
69 views

Exchange 2010 reverse proxy to support imap tls 1.3 [closed]

We have an Exchange 2010 server that only supports TLS 1.0. We want to create a modern app that can communicate with the 15 years old server using IMAP and TLS 1.3. However, Windows Server 2008 R2 ...
Pebbles's user avatar
0 votes
0 answers
29 views

Proxy pass 404 Not Found nginx/1.18.0 (Ubuntu) but the slashes are in the right places

In a file called test.confin /etc/nginx/conf.d, I have: server { listen 80; server_name test; root /var/www; location /some/path/ { proxy_pass http://www.example.com/link/; ...
G M's user avatar
  • 103
1 vote
1 answer
50 views

Django + Nginx + Gunicorn - Static files not found

I'm using Django+Gunicorn+Nginx for my web application in a Ubuntu 22.04.4 server. I followed this guide until the end and my web is running in production. However, static files are not working (css, ...
pfrud's user avatar
  • 21
0 votes
0 answers
34 views

Peculiar issue with Ubuntu 22.04.3 server not reaching internet [closed]

I have a server running on a domestic connection that uses DDNS to keep sites indexed. The firewall is open on the router and pointing at the server on both ports 443 and 80, and then redirecting to ...
Tomás Metcalfe's user avatar
0 votes
1 answer
53 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
67 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
35 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
51 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
1 answer
43 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
50 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
79 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
48 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
91 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
52 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
81 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
86 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
146 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
119 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
58 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
60 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
  • 964
0 votes
2 answers
78 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

1
2 3 4 5
345