I have installed nextcloud 26.0.10 on ubuntu running nginx. When I first hit the URL it gave me a window to set up an admin username and password, specify the data folder location and the database location as expected.
First time I submitted the wrong password and it griped at me, so I know the second time the config setup went fine, but then it redirected me to mydomain.com/index.php/apps/dashboard
which gave an Ngnix 403 Forbidden
error
Trying to change the URL to:
mydomain.com/apps/dashboard
also gives the same 403
, and there are no files in that directory like an index.php, just subfolders.
Anyone know what might be wrong here? I have not seen this in the NC docs so far.
(HINT: I suspect this is an issue with routing redirects, which I'm familiar with in Apache but not nginx)
Answer:
The following seems to be a partial answer but it's not complete. This will allow
mydomain.com/index.php/apps/dashboard
to display, butmydomain.com/apps/dashboard
(the pretty URL) will still produce a 403 (because there is a folder path but no actual index.php file there, and shouldn't be):