Instead of n8n, the nginx welcome page appears

I’ve configured nginx to proxy all requests to n8n, which is running on localhost:5678. However, when I open the domain, the default page “Welcome to nginx!” is still displayed. This is despite the fact that n8n is online (as confirmed by curl http://127.0.0.1:5678) and nginx -t also returns a 200 ok response.

Things I’ve done:

1- In the server, running and showing no lag with n8n and PM2:
n8n ready on ::, port 5678
Editor is now accessible via:

http://localhost:5678

2- Successful internal test (on the server itself):
Bash
curl http://127.0.0.1:5678

Output headers:
HTTP/1.1 200 OK

3- nginx -t gives:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

4 - The SSL error that appeared before when trying to use placeholder (because the SSL from Let’s Encrypt was used):
cannot load certificate “/etc/letsencrypt/live/yourdomain.com/fullchain.pem”: … No such file or directory

(Meaning the actual cert files don’t exist, and since I don’t want to use a real domain name yet, I only want the proxy to work: HTTP → proxy to 5678 without SSL).

Then you should configure your NGINX server block to listen on port 80 and proxy requests to n8n on localhost:5678. You do not need to reference any SSL certificate files in your NGINX config if you are not using HTTPS.

Share here your config , so we can take a look…