First of all I think I did get nested folders when installing:
/var/www/flarum/flarum/public
So there was no index.php in this path /var/www/flarum/public/index.php
I corrected this and the path seems to be OK.
> ls /var/www/flarum/public
assets
index.php
web.config
And changed some settings in the Nginx settings:
server {
server_name forum.go4webdev.org;
listen 443;
listen [::]:443;
root /var/www/flarum/public;
index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\. {
deny all;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
log_not_found off;
access_log off;
allow all;
}
include /var/www/flarum/.nginx.conf;
}
clarkwinkelmann where is the SSL configuration? I believe there's usually a listen directive as well as an ssl_certificate directive in an nginx https configuration. Maybe there's another configuration file with a different root directive that's used instead of the one you shared?
The certificate is taken care of by Cloudflare https://hosting.go4webdev.org/cloudflare
I see the URL you shared now returns a page, although it doesn't appear to be Flarum.
All my other sites are go executable proxied at different ports, but Flarum seems to be a collision with the main domain https://go4webdev.org
Any further tip how to track this down? It seems that the mix of proxied sites and a plain php (Flarum) could be one reason. How do I proxy a php site?