[GH-ISSUE #663] Apache is not really serving #474

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

Originally created by @gerroon on GitHub (Oct 12, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/663

Hi

I was able to install Koel and populate with my music. I can serve Koel by running php artisan serve --host 0.0.0.0 --port 9112

The user, the songs etc seems to work. So I went ahead and copied the whole folder to /var/www/html and chown everything to www-data (being apache2 user).

I can open the koel page under apache but there are 2 issues

1 the Koel icon image is missing from the login page (which is not the case with artisan serve)

2 it wont accept my login, as if wrong user name or password without any message

I do not see anything in error.log of apache but there are these lines in access.log of apache

127.0.0.1 - - [12/Oct/2017:16:08:35 -0500] "GET /koel/ HTTP/1.1" 200 1051 "-" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0"
127.0.0.1 - - [12/Oct/2017:16:08:35 -0500] "GET /koel/public/css/app.5c1fc861cdf0d8786951.css HTTP/1.1" 200 4635 "http://127.0.0.1/koel/" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0"
127.0.0.1 - - [12/Oct/2017:16:08:35 -0500] "GET /koel/public/js/app.68bee85ebd125e60b3fc.js HTTP/1.1" 200 217048 "http://127.0.0.1/koel/" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0"
127.0.0.1 - - [12/Oct/2017:16:08:36 -0500] "GET /public/img/logo.svg HTTP/1.1" 404 508 "http://127.0.0.1/koel/" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0"

I am using node 6 , Debian Testing, Apache/2.4.27, mariadb Ver 15.1 Distrib 10.1.26-MariaDB

Like I said Koel works as is via artisan serve but not under apache2.

thanks

Originally created by @gerroon on GitHub (Oct 12, 2017). Original GitHub issue: https://github.com/koel/koel/issues/663 Hi I was able to install Koel and populate with my music. I can serve Koel by running php artisan serve --host 0.0.0.0 --port 9112 The user, the songs etc seems to work. So I went ahead and copied the whole folder to /var/www/html and chown everything to www-data (being apache2 user). I can open the koel page under apache but there are 2 issues 1 the Koel icon image is missing from the login page (which is not the case with artisan serve) 2 it wont accept my login, as if wrong user name or password without any message I do not see anything in error.log of apache but there are these lines in access.log of apache 127.0.0.1 - - [12/Oct/2017:16:08:35 -0500] "GET /koel/ HTTP/1.1" 200 1051 "-" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0" 127.0.0.1 - - [12/Oct/2017:16:08:35 -0500] "GET /koel/public/css/app.5c1fc861cdf0d8786951.css HTTP/1.1" 200 4635 "http://127.0.0.1/koel/" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0" 127.0.0.1 - - [12/Oct/2017:16:08:35 -0500] "GET /koel/public/js/app.68bee85ebd125e60b3fc.js HTTP/1.1" 200 217048 "http://127.0.0.1/koel/" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0" 127.0.0.1 - - [12/Oct/2017:16:08:36 -0500] "GET /public/img/logo.svg HTTP/1.1" 404 508 "http://127.0.0.1/koel/" "Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101 Firefox/49.0" I am using node 6 , Debian Testing, Apache/2.4.27, mariadb Ver 15.1 Distrib 10.1.26-MariaDB Like I said Koel works as is via artisan serve but not under apache2. thanks
kerem closed this issue 2026-02-26 02:33:19 +03:00
Author
Owner

@Orochimarufan commented on GitHub (Oct 13, 2017):

Koel doesn't currently work in a subfolder, see also issue #529

You have to set your document root to koel for it to work

<!-- gh-comment-id:336366065 --> @Orochimarufan commented on GitHub (Oct 13, 2017): Koel doesn't currently work in a subfolder, see also issue #529 You have to set your document root to koel for it to work
Author
Owner

@gerroon commented on GitHub (Oct 13, 2017):

@Orochimarufan

Thanks for pointing it out. It works as root as you mentioned.

Although I wish it worked like a regular web app without taking over the server root.

<!-- gh-comment-id:336464423 --> @gerroon commented on GitHub (Oct 13, 2017): @Orochimarufan Thanks for pointing it out. It works as root as you mentioned. Although I wish it worked like a regular web app without taking over the server root.
Author
Owner

@gerroon commented on GitHub (Oct 14, 2017):

I am having one minor issue which not sure if there is a fix can be done on the Koel side.

I am serving Koel on an internal server via http and then another reverse proxy is pickign up this and serving on the internet. The browsers are blocking Koel's scripts, not sure why I am guessing a security issue.

Any recommendations?

<!-- gh-comment-id:336603304 --> @gerroon commented on GitHub (Oct 14, 2017): I am having one minor issue which not sure if there is a fix can be done on the Koel side. I am serving Koel on an internal server via http and then another reverse proxy is pickign up this and serving on the internet. The browsers are blocking Koel's scripts, not sure why I am guessing a security issue. Any recommendations?
Author
Owner

@Orochimarufan commented on GitHub (Oct 14, 2017):

Did you use one of the templates that come with Koel to set up the proxy? Works just fine for me behind nginx.

EDIT: Turns out I actually have nginx configured for fastcgi directly. Still, did you see if any of the things in the .htaccess that comes with Koel helps? Maybe the Access-Control headers?

<!-- gh-comment-id:336610852 --> @Orochimarufan commented on GitHub (Oct 14, 2017): Did you use one of the templates that come with Koel to set up the proxy? Works just fine for me behind nginx. EDIT: Turns out I actually have nginx configured for fastcgi directly. Still, did you see if any of the things in the .htaccess that comes with Koel helps? Maybe the Access-Control headers?
Author
Owner

@gerroon commented on GitHub (Oct 14, 2017):

@Orochimarufan

I use apache and I have no idea about nginx stuff. Also I am just a user so my understanding of this stuff is not deep enough to convert scripts like that :(

Thanks for the info. I will try to search through other means to see if I can spot useful info regarding proxying another apache instance regarding browsers blocking the content.

I can open Koel (via proxy) if I disable "security.mixed_content.block_active_content" in Firefox.

<!-- gh-comment-id:336645481 --> @gerroon commented on GitHub (Oct 14, 2017): @Orochimarufan I use apache and I have no idea about nginx stuff. Also I am just a user so my understanding of this stuff is not deep enough to convert scripts like that :( Thanks for the info. I will try to search through other means to see if I can spot useful info regarding proxying another apache instance regarding browsers blocking the content. I can open Koel (via proxy) if I disable "security.mixed_content.block_active_content" in Firefox.
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#474
No description provided.