YunoHost-Apps / ampache_ynh

Ampache package for YunoHost
http://ampache.org/
GNU General Public License v3.0
17 stars 16 forks source link

404 Not Found after installation #20

Closed sylvainar closed 6 years ago

sylvainar commented 6 years ago

Hey !

Just after installation, the url domain.tld/ampache/ send back a 404, I have to append index.php to the URL to have the page loading. The solution is to enable URL Rewriting parameters in Ampache settings, but maybe it could be solved with nginx only.

Any idea on how to solve this ?

Thanks !

aymhce commented 6 years ago

Bad ... I don't have this problem @ home ... But you are the 2nd person to talk me this issue. Do you have install logs ? What is your Yunohost version ? (I am on 2.7.2)

Do you think RewriteEngine On is enough ?

aymhce commented 6 years ago

@sylvainar I reproduce a 404 on "private navigation" : can you confirm me this :

With domain.tld/ampache (without slash) there is a 404, but it work on domain.tld/ampache/ (with slash). Right ? (it's that I have an idea of issue's cause)

maniackcrudelis commented 6 years ago

Hi, you have to remove the ending slash in the first line of your nginx config file. That's why you have this error. https://github.com/YunoHost-Apps/ampache_ynh/blob/master/conf/nginx.conf#L1

aymhce commented 6 years ago

@maniackcrudelis @sylvainar fix it b52d884b6dc0ffdd0e1241d70f0657522c69dafb This problem was here a long time ago. Thanks for report and help.

Can you retest please ?

maniackcrudelis commented 6 years ago

Let's go ;)

sylvainar commented 6 years ago

Tested, it works ! 👍 Thanks for your reactivity !

maniackcrudelis commented 6 years ago

Ok, so you should use the helper ynh_add_nginx_config. With this modification, your app doesn't work anymore on root. Nginx failed to reload

aymhce commented 6 years ago

@maniackcrudelis ok thanks for advice. But I do an update (a99dd0c1af9475363b32c66e7517e37e6ad0042a) with an homemade method. No more time for implement helper, sorry. It will done later.

Can you retest please ?

maniackcrudelis commented 6 years ago

Seems ok now.

aymhce commented 6 years ago

I'am consider fixed