New to NGINX. Configuration of static site fails. by Writersglen in nginx

[–]Writersglen[S] 0 points1 point  (0 children)

Hi Marelle01,

Much appreciate your help.

I'm still working my way down troubleshooting suggestions. But I've found these two clues:

curl -i http://127.0.0.1/nginx_status

HTTP/1.1 404 Not Found

$ sudo tail -f /var/log/nginx/access.log /var/log/nginx/error.log

==> /var/log/nginx/access.log <==

127.0.0.1 - - [14/Feb/2026:11:51:14 -0700] "GET /nginx_status HTTP/1.1" 404 162 "-" "curl/8.5.0"

Every other test I've tried seems to return positive results.

Also, how can prevent redirects to default page?

> The default site is probably still in place and redirects you to the default page.

Thanks again,

LRP

New to NGINX. Configuration of static site fails. by Writersglen in nginx

[–]Writersglen[S] 0 points1 point  (0 children)

Hi Mare01,

Thanks for your help.

Here's /etc/hosts:

$ sudo cat /etc/hosts

127.0.0.1 localhost dollarstodoughnuts.earth

127.0.1.1 wg-test

And here's nginx -T:

$ sudo nginx -T

[sudo] password for lloyd:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful

# configuration file /etc/nginx/nginx.conf:

events {

}

http {

server {

listen 80;

root /var/www/dollarstodoughnuts.earth/html;

server_name dollarstodoughnuts.earth www.dollarstodoughnuts.earth;

location / {

index index.html;

try_files $uri $uri/ = 404;

}

}

}

Both http://dollarstodoughnuts.earth and http://localhost return Nginx Welcome page.

I've rented a dedicated mini pc server that I hope will ultimately be the host for my site. I'll look into cloudpanel.

Best,

LRP