Installing Grav with Nginx on Armbian Ubuntu Focal directs to Nginx default page

Server: Rock64
OS: Armbian Focal
Loading from SD Card
Server is behind Nginx reverse proxy

I have followed the instructions here: https://websiteforstudents.com/setup-grav-cms-on-ubuntu-16-04-17-10-18-04-with-nginx-mariadb-php-7-2-and-lets-encrypt-ssl-tls-certificates/

Except I didn’t do the SSL part as my reverse proxy handles that. Also I am using PHP7.4 so I changed all of the relevant PHP7.2 parts to 7.4 and used the standard Armbian focal repos.

My grav config under sites-available on the rock64 looks like this:

server {
    listen 80;
    listen [::]:80;
    root /var/www/html/grav;
    index  index.php index.html index.htm;
    server_name  localhost;

     client_max_body_size 100M;

    location / {
        try_files $uri $uri/ /grav/index.php?_url=$uri&$query_string;
    }

    location ~ \.php$ {
         include snippets/fastcgi-php.conf;
         fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include fastcgi_params;
    }
}

and under sites-enabled on my proxy server my grav config is this:

server {
    server_name mysite.com;
    # The internal IP of the VM that hosts your Apache config
    set $upstream 192.168.57.2;

    location / {
    proxy_pass_header Authorization;
    proxy_pass http://$upstream;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_http_version 1.1;
    proxy_set_header Connection “”;
    proxy_buffering off;
    client_max_body_size 0;
    proxy_read_timeout 36000s;
    proxy_redirect off;
    }

Going to my grav site just leads me to the nginx default page saying congratulations…etc.

How do I get it to direct to the Grav installation instead of the Nginx default page?

The answer is you have to remove the default nginx template from sites-enabled.