This environment is of course running behind an NGiNX reverse proxy since I have other servers on the network running as well. The reverse proxy has cerbot installed and is running SSL termination.
I am using the following configuration on the Nextcloud server:
But right now I am just hitting the default “Welcome to NGiNX” page. I have /var/www/cloud, the permissions are correctly set and everything. What am I doing wrong?
Okay, I didn’t know about SSL termination, sorry about that.
Further (maybe stupid) ideas:
loaded the correct config (just to make sure you didn’t edit the config that is not loaded actually)
php handler really listening on port 9000 and you don’t use the socket
restarted nginx after config edit
Oh and I had an issue in the past where the browser cached the content. I just noticed that when using a different browser. Clearing the browser cash and doing a full reload of the page (CTRL + R) helped with then.
Since there are two server blocks with the same server_name nginx will pick the first one (which is basically an empty block) serving a request with that server name. Have you tried deleting or commenting out the first server block:
server {
listen 80;
listen [::]:80;
server_name cloud.domain.com;
}
EDIT: don‘t forget to let nginx reload the configuration files with nginx -s reload
Are you sure php-fpm is configured to listen at 127.0.0.1:9000?
Have a look in the configuration file /etc/php/7.2/fpm/pool.d/www.conf where php is listening.