[GH-ISSUE #330] Login gives 404 for /api/me #243

Closed
opened 2026-02-26 02:32:33 +03:00 by kerem · 4 comments
Owner

Originally created by @JoshkVFX on GitHub (May 16, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/330

Hey Phan an,

Just trying to create a virtual host for koel and I'm getting the login page no problem, but then I'll try and login and it just does that shake thing signifying wrong credentials.

Then I do F12 and look at the network capture (chrome) and it says

http://music.lan/api/me Failed to load resource: the server responded with a status of 404 (Not Found)

Just got

main-8f5a1cf917.js:7 POST http://music.lan/api/me 404 (Not Found)(anonymous function) @ main-8f5a1cf917.js:7i @ main-8f5a1cf917.js:7t.exports @ main-8f5a1cf917.js:7t.exports @ main-8f5a1cf917.js:7(anonymous function) @ main-8f5a1cf917.js:7

I've got my directory in /var/www/music/ and I'm running Ubuntu 14.04.4

Originally created by @JoshkVFX on GitHub (May 16, 2016). Original GitHub issue: https://github.com/koel/koel/issues/330 Hey Phan an, Just trying to create a virtual host for koel and I'm getting the login page no problem, but then I'll try and login and it just does that shake thing signifying wrong credentials. Then I do F12 and look at the network capture (chrome) and it says > http://music.lan/api/me Failed to load resource: the server responded with a status of 404 (Not Found) Just got > main-8f5a1cf917.js:7 POST http://music.lan/api/me 404 (Not Found)(anonymous function) @ main-8f5a1cf917.js:7i @ main-8f5a1cf917.js:7t.exports @ main-8f5a1cf917.js:7t.exports @ main-8f5a1cf917.js:7(anonymous function) @ main-8f5a1cf917.js:7 I've got my directory in /var/www/music/ and I'm running Ubuntu 14.04.4
kerem closed this issue 2026-02-26 02:32:33 +03:00
Author
Owner

@phanan commented on GitHub (May 17, 2016):

Make sure you have mod_rewrite enabled.

<!-- gh-comment-id:219616695 --> @phanan commented on GitHub (May 17, 2016): Make sure you have mod_rewrite enabled.
Author
Owner

@JoshkVFX commented on GitHub (Jun 8, 2016):

Hey Phanan, I've definitely got mod_rewrite enabled but it's still giving me the save problems. Any ideas?

<!-- gh-comment-id:224676334 --> @JoshkVFX commented on GitHub (Jun 8, 2016): Hey Phanan, I've definitely got mod_rewrite enabled but it's still giving me the save problems. Any ideas?
Author
Owner

@paul-mesnilgrente commented on GitHub (Jul 3, 2017):

Hi, did you solve the problem? I have exactly the same. Here is my koel-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName koel.paul-mesnilgrente.com

    DocumentRoot /var/www/koel/

    ErrorLog ${APACHE_LOG_DIR}/koel_error.log
    CustomLog ${APACHE_LOG_DIR}/koel_access.log combined
SSLCertificateFile /etc/letsencrypt/live/koel.paul-mesnilgrente.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/koel.paul-mesnilgrente.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

This is the good URLs so you can test yourself.

I have rewrite module enabled. I can provide more information if you want to.

<!-- gh-comment-id:312614923 --> @paul-mesnilgrente commented on GitHub (Jul 3, 2017): Hi, did you solve the problem? I have exactly the same. Here is my `koel-le-ssl.conf` ```xml <IfModule mod_ssl.c> <VirtualHost *:443> ServerName koel.paul-mesnilgrente.com DocumentRoot /var/www/koel/ ErrorLog ${APACHE_LOG_DIR}/koel_error.log CustomLog ${APACHE_LOG_DIR}/koel_access.log combined SSLCertificateFile /etc/letsencrypt/live/koel.paul-mesnilgrente.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/koel.paul-mesnilgrente.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule> ``` This is the good URLs so you can test yourself. I have rewrite module enabled. I can provide more information if you want to.
Author
Owner

@paul-mesnilgrente commented on GitHub (Jul 3, 2017):

Hi I solved my problem by adding this to my virtualhost:

<Directory /var/www/koel>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>
<!-- gh-comment-id:312623392 --> @paul-mesnilgrente commented on GitHub (Jul 3, 2017): Hi I solved my problem by adding this to my virtualhost: ```xml <Directory /var/www/koel> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#243
No description provided.