After installing Cloudmon, accessing the application URL may display the default “Welcome to nginx” page instead of the Cloudmon UI.
You may also encounter the error below while reloading NGINX:
nginx: [emerg] duplicate default server for 0.0.0.0:80
This article explains why this happens and how to resolve it.
Cloudmon installation is completed
NGINX service is running
Accessing the server IP/URL shows “Welcome to nginx”
NGINX reload fails with a duplicate default server error
NGINX is serving its default site instead of Cloudmon
Multiple NGINX server blocks are configured with:
listen 80 default_server;
NGINX allows only one default server per IP and port
ss -tulnp | grep :80
Expected:
NGINX listening on 0.0.0.0:80 and [::]:80
Multiple PIDs indicate worker processes, not multiple NGINX instances
ls /etc/nginx/sites-enabled/
If the default site is enabled, NGINX will show the welcome page.
Removing the default site prevents conflicts and ensures Cloudmon loads correctly.
The error occurs because more than one configuration file is marked as the default server.
default_serverRun:
grep -R "default_server" /etc/nginx/
This will show which configuration files contain:
listen 80 default_server;
You should ensure only one file (or none) contains this directive.
If the file below exists:
/etc/nginx/sites-enabled/default
Remove it:
sudo rm /etc/nginx/sites-enabled/default
Why this works:
The default file serves the NGINX welcome page.
Cloudmon has its own configuration.
Removing the default site prevents conflicts and ensures Cloudmon loads correctly.
default_server from the Conflicting FileIf you need to keep both configuration files:
Open the file that should NOT be the default:
sudo nano /etc/nginx/sites-enabled/default
Change:
listen 80 default_server;
To:
listen 80;
Save and exit.
Important:
Only one configuration file should contain default_server, or none at all.
sudo nginx -t
sudo systemctl reload nginx
Expected output:
syntax is ok
test is successful
curl http://localhost
The NGINX welcome page should no longer appear, and Cloudmon should load once correctly mapped.