Hi all,
I am running the current stable release of NC 12.0.3 on a debian server with ispConfig as a hosting platform.
The problem I am facing seems to be known but I have not see this specific analysis.
Problem:
When trying to activate or deactivate an app via the web-interface an error is shown or nothing happens at all. Upon page reload the config has not changed.
Setup:
- Debian Jessie
- NC 12.0.3
- ispConfig 3.1.7
- nginx 1.12.2
Analysis:
- The request to enable or disable the app returns a 404.
index.php/settings/ajax/enableapp.php
- ispConfig outputs this block in the vhost file by default:
location ~ \.php$ {}
- NC config [1] adds this later on:
location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {}
- The first block takes precedence over the second one which breaks the initial request. A change of the order fixes the issue. But this cannot be done systematically but only with a manual edit of the vhost file.
- Similar discussion has already taken place at ispConfig. [2]
I think this problem should be adressed by adjusting the NC configuration and not by editing the vhost templates. I tried fixing the NC config by hand but have not have any success.
Can anyone point me to info on how to adjust the second block in order for it to take precedence over the first one?
Relevant links: