The default install of nginx has a link from sites-enabled
:/etc/nginx/sites-enabled $ ll
total 8
drwxr-xr-x 2 root root 4096 Aug 1 14:59 ./
drwxr-xr-x 8 root root 4096 Aug 1 15:01 ../
lrwxrwxrwx 1 root root 34 Aug 1 14:59 default -> /etc/nginx/sites-available/default
What you want in default is the lines in yellow, assuming you want to use root for something else and have your weather pages in a subfolder.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
location /weewx {
alias /home/weewx/public_html;
}
}