I installed nc12 on a nginx webserver (ispconfig as server control). The most nginx directives I got from here: https://docs.nextcloud.com/server/11/admin_manual/installation/nginx_nextcloud_9x.html. Everything is working except /index.php/… requests. They results in a 404.
For example if I want to change a users quota I got a 404 in the dev tools (POST /index.php/settings/ajax/setquota.php 404 ()).
The same happened when I want to update an app (POST /index.php/settings/ajax/updateapp.php 404 ())
The corresponding nginx directive:
location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
include /etc/nginx/fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME {DOCROOT}$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS $https;
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
{FASTCGIPASS}
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
}
Info: {DOCROOT} and {FASTCGIPASS} will be replaced to the correct settings by ispconfig.
Do you have an idea how to resolve the 404 responses?
=== EDIT #1 ===
Requests to /remote.php/dav/files/… works. I think this request belongs to the same nginx directive. Maybe the nginx directive is not the reason for the 404 errors on the /index.php/ requests.
=== EDIT #2
===
I’m back to narrow the 404 issue. Now I find out using /index.php/settings/admin instead of /settings/admin makes no difference. Both urls leads me to the general admin page. So as I said in edit #1 the nginx location directive is not the reason for the 404 when changing a users quota.
For now following requests results in a 404:
- /index.php/apps/files/ajax/getstoragestats.php?dir=%2F (results in not being able to uploads files)
- /index.php/settings/ajax/updateapp.php
- /index.php/settings/ajax/disableapp.php
- /index.php/settings/ajax/setquota.php
Changing the fastcgi_param “front_controller_active” to false and / or set “htaccess.IgnoreFrontController” to true (as mentioned in Nginx with subdir and chrooted php-fpm returns 404 errors for some (SVG) files - #5 by MichaIng) doesn’t work for me. Going back from pretty urls to default urls doesn’t work too.
Is there any solution for nc12 or do I have to wait for nc13 to get that issue solved as @MichaIng said in the linked thread?