-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ampache api with nextcloud served by nginx gets 404 when following nextclou admin docs #851
Comments
Thanks for the info. Do you have some suggestion, what should be changed in the Music app? Or is the point that the Nextcloud admin docs should not be followed? |
Paul, as ampache api endpoint of music app follows the specification of ampache docs, I think the only way is to add a new location block or tweaking the php handler block in nginx conf. I am gonna test later which one helps there. |
What is working for me is replacing try_files directive of php handler specified in https://docs.nextcloud.com/server/21/admin_manual/installation/nginx.html#nextcloud-in-the-webroot-of-nginx :
But as it touches the main php handler of the whole nextcloud maybe there are some problems somewhere ... |
HI, I can see this issue open for 3 years, does that mean it will not be fixed ? |
@pled I don't believe that there's anything that the Music app could do to help the situation if the problem is in the nginx configuration. Frankly, configuring web servers has always seemed to me to be like some kind of black magic and I have a bit hard time following, what's the root cause of this issue. |
nextcloud is stripping the .php from the url? You could probably just set a new location in the config for the server
and then remove the fastcgi_split_path_info or copy the default settings without it into the folder (DISCLAIMER that i have no idea how to use nginx) |
@paulijar : yes, I agree this is related to nginx configuration and not Music App. And looking at that nextcloud documentation page, it is mentionned that only Apache is officially supported. Nevertheless, applying the |
I suspect that https://github.com/nextcloud/documentation/issues would be the correct place to request changes/additions to the Nextcloud documentation. |
Setting nginx site as it's explained in nextcloud administration docs for nginx: https://docs.nextcloud.com/server/21/admin_manual/installation/nginx.html , the php location block breaks ampache api as it splits the path from last ".php" found (xml.server.php) using
fastcgi_split_path_info ^(.+?\.php)(/.*)$
.Using https://example.org/index.php/apps/music/ampache/server/xml.server.php works...
The text was updated successfully, but these errors were encountered: