Thrusted Domain goes to index.php/login => 404

Hi,

i successfully set up nextcloud on my ubuntu server with nginx and php7fpm. My first start went to the index.php and i got the “please add your domain to thrusted domains in config.php” message.

I did this.

After that i go to cloud.domain.com again and my browser url shows cloud.domain.com/index.php/login (???) and I get the nginx 404

I know thats an incorrect nextcloud url, but I dont find the bug in my config.

Nginx error.log says “/index.php/login” is not a directory (yes thats true :slight_smile: )
nextcloud log says nothing.

Thats an fresh ubuntu server nginx php7fpm setup. The nginx sites-enabled config is basic.

server {
        listen 80;
        listen [::]:80;
 
        server_name cloud.url.com;
        root /var/www/html/nextcloud;
        index index.html index.php;
 
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        }
}

Where can the be the bug? Google wasnt my friend.

Maybe somebody have an idea.

Thank you

Before you use a very basic and reduced config, you should perhaps try the default configuration first:
https://docs.nextcloud.com/server/11/admin_manual/installation/nginx_nextcloud_9x.html?highlight=nginx

Thank you,

I tried this config. Maybe it will work, but after I want to go to https://cloud.domain.com I get only the index.php offered as download.

Whats wrong there?

Maybe there should be a few lines for the php files?

location ~ \.php$ {
	include snippets/fastcgi-php.conf;
	fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}´

(i tried, but will not work :slight_smile: )

Any luck with this? I’m running into the exact same issue. Thanks.