Questions tagged [nginx]
Questions relating to Nginx, an open source Web Server and reverse proxy server.
919 questions
0
votes
0
answers
34
views
Slow performance of nginx as reverse proxy
I use nginx as a reverse proxy in the following configuration: Ubuntu 22.04, nginx 1.18.0, access to two web services on host A and host B, which are accessible via https://a.foo.com:8443 and https://...
0
votes
0
answers
52
views
Trying to make Nginx start with Ubuntu
I have been trying to get my Nginx local multi streaming server working. I have it working sort of, but here's the rub. I have Nginx installed, and I can get it to run and work great when I use the ...
0
votes
0
answers
21
views
HTTPS access comes and goes
I have just done a clean install of Ubuntu 24.04 server and installed iRedMail with the nginx web interface as a mail server. I have set a static IP and it works fine for about 2 minutes. Then the ...
-1
votes
1
answer
75
views
Opening port issue
I am trying to open port 4000, but apparently I am not succeeding.
I did that with ufw allow command, but it doesn't appear in the netstat list and nmap indicates this port is closed as well.
What am ...
0
votes
0
answers
24
views
Set Ununtu time using web server
I am using nanopi board/ Ubuntu TLS 20.04 focal
have a simpoole site using nginx web server
inside a the page there is a button to apply new time to the system using "exec(date --set='')"
I ...
0
votes
0
answers
17
views
Serving a static web application from a different absolute path on a different path of the domain
Ubuntu 20.04 :
I have a django application running on port 8000 and NGINX running in the foreground.
I have a docusaurus folder converted documentation at /home/myUsername/uploads/docs/ which is a ...
0
votes
0
answers
24
views
nginx dependencies in deb
I have create my own x.deb. This x.deb needs to install the nginx. The problem is the machine that i need to install the deb don't have network access. Its possible to change my one x.deb to install ...
0
votes
0
answers
28
views
Error 'Version '1.26.1*' for 'nginx' was not found' on installing Nginx version 1.26.1 [duplicate]
I am new to Nginx and I am trying to install a specific version 1.26.1 in my server using apt-install
I use sudo apt install nginx=1.26.1* to install but I am receiving an error upon installation
...
0
votes
0
answers
164
views
Enabling Brotli compression in Ubuntu 24.04
I'm wondering if anyone has a roadmap for implementing Brotli compression on a Ubuntu 24.04 system with NGINX 1.26.2? I have found various answers for earlier versions of Ubuntu but nothing specific ...
0
votes
0
answers
84
views
nginx conf for blocking direct IP
We have an email server running on a Ubuntu 22.04 with nginx. I am quite new to nginx and try to configure the 00-default.conf in sites-enabled to block requests that come direct from an IP address ...
0
votes
0
answers
884
views
Failed to start php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
After I upgraded to ubuntu 20.04.1, I can no longer start php-fpm8.3, I get the above error, and in the log I have the following:
× php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
Loaded:...
0
votes
0
answers
43
views
domain/phpmyadmin 502 but domain work greatly
url/phpmyadmin said 502 error using nginx/1.24.0 (Ubuntu)
in error log :
2024/08/28 20:10:03 [crit] 2409#2409: *5 connect() to unix:/var/run/php/php8.3-fpm.sock
failed (2: No such file or directory) ...
-1
votes
1
answer
420
views
How to Enable HTTP/3 with Nginx from Ondřej’s PPA on Ubuntu 24.04?
I’m running Ubuntu 24.04 and using the Nginx packages maintained by Ondřej Surý (from ppa:ondrej/nginx). My Nginx version is 1.26.2, and I want to enable HTTP/3 (QUIC) support. I noticed that --with-...
0
votes
0
answers
54
views
Nginx stopped doing it job: cant bind to ports, doesn't reverse proxy
Well, I tried to self-host and reverse proxy a webpage for my self-hosted discord bot with this guide, but it wasn't really working for me: I have the bot's webpage enabled w/ auto-startup, I have ...
0
votes
1
answer
146
views
Version mismatch on nginx.pm after updating nginx module perl
I have gotten an error after updating nginx on my server, the module Perl in the file /usr/local/lib/x86_64-linux-gnu/perl/5.34.0/nginx.pm says its version is 1.24.0 but I have an error that reads:
[...
0
votes
0
answers
117
views
Nginx is deactivated and started automatically on Ubuntu server
I have an Ubuntu 22.04 server which Nginx is installed on that. At the first time I configured Nginx and everything was OK and it started successfully without any errors. After sometime, I wanted to ...
1
vote
1
answer
343
views
Are additional changes necessary for worker_rlimit_nofile to take effect?
We have an Ubuntu server (22.04) with Nginx (1.18).
ulimit -n returns 1024 and in /etc/nginx/nginx.conf there are the following settings:
user www-data;
worker_processes auto;
events {
...
0
votes
0
answers
166
views
Bind uvicorn to a domain name with no explicit port
I have installed a python app on my ubuntu server and have bound it to a domain name which I allocated to the server using plesk's domain option. I run it using uvicorn with this command:
uvicorn app....
0
votes
1
answer
1k
views
How to install nginx and passenger on ubuntu 24.04 noble release
I need some assistance. I am currently deploying a Ruby on Rails application to a DigitalOcean droplet using Capistrano and Ubuntu 24.04 (Noble Numbat). I'm following Chris Oliver's guide from GoRails ...
0
votes
0
answers
102
views
Can't setup Nginx reverse proxy for Nextcloud and Portainer with Letsencrypt support
I have several services installed on my Digital Ocean VPS server (Ubuntu 24.04 LTS):
Wireguard "baremetal" installation (via apt get).
Nextcloud SNAP installation.
Docker and docker compose ...
0
votes
1
answer
328
views
fail2ban regex fails to match nginx error log
In my fail2ban configuration the filter nginx-botsearch.conf (the one that comes with Ubuntu 22.04.4 LTS) is activated.
Please help me in debugging the behaviour of the regular expression
^ \[error\] \...
0
votes
0
answers
407
views
Certbot not creating .wellknown/acme-challenge file
I'm trying to setup Let's Encrypt certbot on a docker container hosted on nginx.
Since nginx is just a proxy-pass to a docker container, I'm forwarding requests to .well-known to the disk
location ...
-3
votes
1
answer
78
views
In Ubuntu, After every minut CPU get 100% with some php process [closed]
I have a problem in my ubuntu installed laptop, after every 10 minutes, my CPU consumption reach to 100% with some unknown php process.
-1
votes
1
answer
656
views
Configuring Nginx on WSL Ubuntu on Windows 11. Config errors
Im having some issues configuring a virtual host in nginx. I followed this tutorial.
How to Install Magento 2 on Ubuntu with Windows 10/11 WSL
My vhost code in sites available looks like this:
server {...
0
votes
0
answers
52
views
nginx traffic redirect based on subdomain
I am currently attempting to setup my VPS to host multiple different docker containers.
My domain name is hosted on Cloudflare (which has a limited amount of available ports).
After doing research, to ...
0
votes
1
answer
332
views
What is the difference between nginx config files?
i have noticed that nginx has a number of configuration files such as nginx.conf in the /etc/nginx directory and 2 others one in the /etc/nginx/site-availabe called defualt and one in the /etc/nginx/...
3
votes
1
answer
498
views
Docker container fails to answer respond to HTTP request from host machine
I want to deploy an API on a server (Ubuntu 18.04) with Docker (container: Ubuntu 22.04). I previously deployed the API with the same config on another server without any issue.
While being built ...
0
votes
1
answer
76
views
Website 504 error when enabling UFW after upgrading from 20.04 to 22.04
After upgrading the server from Ubuntu 20.04 to Ubuntu 22.04, enabling UFW made a website 504 error.
When enabling UFW the error is:
ERROR: problem running ufw-init
iptables-restore: line 4 failed
0
votes
1
answer
395
views
nginx is broken: symbol: ngx_stream_core_module
I just encountered the same issue. I originally had 18.04 installed and first upgraded to 20.04 without problems. A day later I upgraded to 22.04 which gave me the nginx error described above.
Looking ...
0
votes
0
answers
218
views
Nginx configuration failure: iptables table does not exist
I tried to configure nginx on my Ubuntu system. During this process, I executed the command sudo ufw allow 'Nginx HTTP and I got an error:
WARN: initcaps
[Errno 2] iptables v1.8.7 (legacy): can't ...
1
vote
0
answers
222
views
LXD UI Not Recognizing Certificates over NGINX Proxy Manager
I am hosting an LXD instance with the UI enabled. I have passed through the UI via NGINX proxy manager and Cloudflare is proxying the connection with DNS from a subdomain.
On my local network, I can ...
0
votes
0
answers
316
views
Why the nginx docker container stopped by Systemd?
I encountered an issue today with the Nginx service running as a container on our Ubuntu 20.04.6 LTS server. The service was in a stopped state, and I had to restart it manually.
I've attached a ...
0
votes
0
answers
157
views
How to enable https for azure vm in Ubuntu server?
I have created a Virtual machine with Ubuntu server 22.04 LTS and have installed nginx in it. I am able to access VM through http using the public ip. But unable to access through https.
Should I ...
0
votes
0
answers
222
views
How to run password with sudo command using php?
Below is the example, I was trying to execute the command using PHP function.
Not getting any error or not happen anything after execute this code.
$siteConfig = <<<EOL
server {
listen 80;...
0
votes
0
answers
126
views
NGINX reverse proxy with Apache shows default Apache index page
I have a server that had Apache installed first. Subsequently I installed NGINX in order to have it reversed proxy to Apache.
According to /etc/apache2/ports.conf Apache listens to port 8090
Listen ...
0
votes
0
answers
254
views
Map the .local domain and subdomain for docker container in ubuntu 22.04
I have a Linux server with Ubuntu 2022, whose IP is 192.168.100.82, and to access applications running on Docker, I need to enter the IP address and port, there are three applications on ports 3000, ...
0
votes
2
answers
635
views
Cannot access any service running on ubuntu server including SSH
Problem: I'm unable to access any service running on by Ubuntu 22.04, including SSH. This server has been running for months without any issues. It currently hosts a frontend as well as 3 different ...
0
votes
1
answer
198
views
php via https not working
I run nginx with php7.4-fpm on a ubuntu 22.04 and I have a info page like this.
<?php phpinfo(); ?>
I have this nginx server config.
server {
listen 80;
listen [::]:80;
root /var/www/html;...
3
votes
1
answer
3k
views
Running Certbot to add new domains to an existing installation
I just finished running Certbot instructions located at:
Ubuntu Certbot Instructions
Certbot automatically detected my domain and installed the certificate, everything worked perfectly.
What I need to ...
0
votes
0
answers
1k
views
Problem connecting to PostgresSql from Docker container
I have two Ubuntu Servers 20.04 with an external IP of 185.253.74.227
The first server has a local IP 192.168.1.30 on which I have nginx running and I host my Docker containers on it.
The second ...
0
votes
1
answer
75
views
Though I uninstalled the apache2 in my ubuntu 20.04 Azure VM, apache2 -v command giving me the current installed version
I have the Azure VM is of Linux (Ubuntu) -20.04.
Long back, installed the apache2 (version is 2.4.41). Now I have tried to uninstall apache2, nginx but when I enter apache2 -v command in the azure vm (...
2
votes
1
answer
1k
views
Why am I seeing Apache2 Default Page while using nginx
This is my first time setting up virtual server with Ubuntu and I have some questions regarding Apache2.
When I turn the virtual server on, it was started with lightppd. Since (I thought) I'm more ...
0
votes
0
answers
653
views
Installing SSL Certificate on Nginx now website is not accessible
I'm having a heck of a time getting Ubuntu 22.04, Nginx and Certbot to play nicely together.
I'm a newb when it comes to Ubuntu so I'm learning my way with trial and error, though I seem to be getting ...
2
votes
0
answers
191
views
PhpMyadmin throwing 500 with nginx and Php on Ubuntu 22.04
I have tried installing phpmyadmin as mentioned in the link below
https://thelinuxterminal.com/how-to-install-phpmyadmin-ubuntu-22-10/
I followed it step by step but i am getting 500 if i visit the ...
0
votes
0
answers
238
views
Dynamically and automatically give out SSL certificates for new domains
I have a service that allows others to bring their own domains for. Currently, the system goes as follows:
User points their domain to our servers
User sends domain to us
We run a custom add command ...
0
votes
0
answers
383
views
Deploying multiple flask app aws + gunicorn + nginx
I am trying to deploy multiple Flask applications in a AWS EC2 without success :(.
I'm following this tutorial, the steps seems to be simple enough, however I haven't managed to make it work. This is ...
0
votes
1
answer
624
views
Restrict access to folder by username/password (nginx)
I have burnt my old server and now trying to reinstall my domain on the new server (Ubuntu 22.04). I remember the following code (nginx) used to work to restrict the admin folder - just an extra layer ...
0
votes
1
answer
6k
views
I get nginx.service: Failed with result 'exit-code' when i want to install nginx on a ubuntu server
I use: sudo apt update, sudo apt install nginx but i get this:
Preconfiguring packages ...
Selecting previously unselected package libdeflate0:amd64.
(Reading database ... 27812 files and directories ...
1
vote
1
answer
1k
views
"does not have a Release file" for Ubuntu 20.04 upgrading nginx via add-apt-repository [duplicate]
I'm trying to upgrade a server from nginx 1.18 to a supported mainline version.
add-apt-repository ppa:nginx/mainline
I keep seeing an error:
E: The repository 'http://ppa.launchpad.net/nginx/mainline/...
0
votes
1
answer
1k
views
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2)
Hello I've a major issue here that the server diskspace got full days ago, then all services turned off
I managed to clear some space and have 48GB free space, but the issue I face now is that I can'...