Page not found after Installation (error 404)

Hi,

direkt after following these Guide for installation with nginx https://www.rosehosting.com/blog/install-nextcloud-on-ubuntu-16-04/ the Installtion worked without errors but, rigt after installation finished and the page switched to nextcloud/index.php/login all what i get is “404 Not Found
nginx/1.10.1 (Ubuntu)” im Running ubuntu 16.10 64 Bit with nginx php7 and mysql.

What do i have to do so nextcloud is woerking? the root pass is out of the box: /usr/share/nginx/html/nextcloud

Thnx

I’m experiencing the same problem, but on a Synology Ngnix configuration. No help so far :worried:

Thats bad maybe owncloud will working i ll give it at ry, i need Owncloud /Nextcloud just only for syncing and share some Calendarś, nothing more.

Keep in mind nginx isn’t officially supported, though it obviously works.

What do your nginx logs show? Error log/access log - as it’s a 404 that would indicate an issue with the configuration.

Output your nextcloud nginx configuration file here as well.

1 Like

Ok, at first i thought its just a permission Problem because of the error log. but i changed the rights according to the error message. then i ralized there are two users for “www”: www and www-data now im confused which one is the right one the root Directory its the default one (usr/share/nginx/html) here are the requested files
error log (only the newest rows):
2017/02/14 11:48:23 [crit] 1780#1780: *1791 stat() “/usr/share/nginx/html/nextcloud/owncloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/owncloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:48:55 [crit] 1780#1780: *1792 stat() “/usr/share/nginx/html/nextcloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:48:55 [crit] 1780#1780: *1792 stat() “/usr/share/nginx/html/nextcloud/owncloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/owncloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:49:27 [crit] 1780#1780: *1793 stat() “/usr/share/nginx/html/nextcloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:49:27 [crit] 1780#1780: *1793 stat() “/usr/share/nginx/html/nextcloud/owncloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/owncloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:49:59 [crit] 1780#1780: *1794 stat() “/usr/share/nginx/html/nextcloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:49:59 [crit] 1780#1780: *1794 stat() “/usr/share/nginx/html/nextcloud/owncloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/owncloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:50:31 [crit] 1780#1780: *1795 stat() “/usr/share/nginx/html/nextcloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/status.php HTTP/1.1”, host: "localhost"
2017/02/14 11:50:31 [crit] 1780#1780: *1795 stat() “/usr/share/nginx/html/nextcloud/owncloud/status.php” failed (13: Permission denied), client: 127.0.0.1, server: cale-bs.dep, request: “GET /nextcloud/owncloud/status.php HTTP/1.1”, host: “localhost”

Acces log:

127.0.0.1 - - [14/Feb/2017:11:53:10 +0100] “GET /nextcloud/core/img/background.jpg?v=1 HTTP/1.1” 200 95212 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:11:53:10 +0100] “GET /nextcloud/core/img/logo-icon.svg?v=1 HTTP/1.1” 200 1049 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:11:53:10 +0100] “GET /nextcloud/core/fonts/OpenSans-Regular.woff HTTP/1.1” 200 20544 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:11:53:10 +0100] “GET /nextcloud/core/fonts/OpenSans-Semibold.woff HTTP/1.1” 200 69888 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:11:53:10 +0100] “GET /nextcloud/cron.php HTTP/1.1” 503 15602 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:11:53:10 +0100] “GET /nextcloud/core/img/favicon.ico HTTP/1.1” 200 3262 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:11:53:11 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 12742 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:53:43 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 12742 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:54:15 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 12742 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:54:47 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 12742 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:55:19 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 12742 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:55:51 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 13101 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - - [14/Feb/2017:11:56:03 +0100] “GET /nextcloud/ HTTP/1.1” 503 15918 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:11:56:03 +0100] “GET /nextcloud/cron.php HTTP/1.1” 503 15918 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:11:56:23 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 13101 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:56:55 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 13101 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:57:27 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 13101 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:57:59 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 13101 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:58:31 +0100] “GET /nextcloud/status.php HTTP/1.1” 503 13101 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:59:04 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:59:04 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:11:59:35 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1799 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - - [14/Feb/2017:11:59:40 +0100] “GET /nextcloud/ HTTP/1.1” 200 1700 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:12:00:07 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1797 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:00:39 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1801 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:01:11 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1799 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:01:43 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1797 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:02:15 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1800 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:02:47 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 1799 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:03:19 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:03:19 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - - [14/Feb/2017:12:03:28 +0100] “GET /nextcloud/ HTTP/1.1” 503 16070 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:12:03:28 +0100] “GET /nextcloud/cron.php HTTP/1.1” 503 16070 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:12:03:51 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:03:51 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:04:23 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:04:23 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - - [14/Feb/2017:12:04:35 +0100] “GET /nextcloud/ HTTP/1.1” 503 15709 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:12:04:35 +0100] “GET /nextcloud/cron.php HTTP/1.1” 503 15709 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:12:04:55 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:04:55 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:05:27 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:05:27 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - - [14/Feb/2017:12:05:31 +0100] “GET /nextcloud/ HTTP/1.1” 503 15602 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:12:05:32 +0100] “GET /nextcloud/cron.php HTTP/1.1” 503 15602 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:12:05:59 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:05:59 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:06:31 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:06:31 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - - [14/Feb/2017:12:06:58 +0100] “GET /nextcloud/ HTTP/1.1” 302 5 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:12:06:58 +0100] “GET /nextcloud/index.php/login HTTP/1.1” 404 152 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - - [14/Feb/2017:12:06:58 +0100] “GET /favicon.ico HTTP/1.1” 404 152 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0"
127.0.0.1 - christian [14/Feb/2017:12:07:03 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:07:03 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:07:35 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:07:35 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:08:07 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:08:07 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:08:39 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:08:39 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:09:11 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:09:11 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:09:43 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:09:43 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:10:15 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:10:15 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:10:47 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:10:47 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:11:19 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:11:19 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:11:51 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:11:51 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:12:23 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:12:23 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:12:55 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:12:55 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:13:27 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:13:27 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:13:59 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:13:59 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:14:31 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:14:31 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:15:03 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:15:03 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:15:35 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:15:35 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:16:07 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:16:07 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:16:39 +0100] “GET /nextcloud/status.php HTTP/1.1” 200 157 “-” "Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)"
127.0.0.1 - christian [14/Feb/2017:12:16:39 +0100] “PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1” 404 152 “-” “Mozilla/5.0 (Linux) mirall/2.2.4 (Nextcloud)”

and config:

server {
listen 80;
server_name mydmain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name mydomain.com;
root /usr/share/nginx/html/nextcloud;

ssl on;
ssl_certificate     /etc/nginx/ssl/nextcloud.crt;
ssl_certificate_key /etc/nginx/ssl/nextcloud.key;
ssl_session_timeout 5m;
ssl_ciphers               'AES128+EECDH:AES128+EDH:!aNULL';
ssl_protocols              TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;

access_log  /var/log/nginx/nextcloud.access.log;
error_log   /var/log/nginx/nextcloud.error.log;

location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
}

location = /.well-known/carddav { 
    return 301 $scheme://$host/remote.php/dav; 
}
location = /.well-known/caldav { 
    return 301 $scheme://$host/remote.php/dav; 
}

client_max_body_size 512M;
fastcgi_buffers 64 4K;
gzip off;

error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;

location / {
    rewrite ^ /index.php$uri;
}

location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
    deny all;
}

location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
    deny all;
}

location ~^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
    include fastcgi_params;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param HTTPS on;
    #Avoid sending the security headers twice
    fastcgi_param modHeadersAvailable true;
    fastcgi_param front_controller_active true;
    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
    fastcgi_intercept_errors on;
    fastcgi_request_buffering off;
}

location ~ ^/(?:updater|ocs-provider)(?:$|/) {
    try_files $uri/ =404;
    index index.php;
}

location ~* \.(?:css|js)$ {
    try_files $uri /index.php$uri$is_args$args;
    add_header Cache-Control "public, max-age=7200";
    add_header X-Content-Type-Options nosniff;
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header X-Download-Options noopen;
    add_header X-Permitted-Cross-Domain-Policies none;
    # Optional: Don't log access to assets
    access_log off;
}

location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
    try_files $uri /index.php$uri$is_args$args;
    access_log off;
}

location ~ /\.ht {
    deny all;
}

}

as far as i understand its a permissions problem but which permission should i use for which subdirectory?