mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #663] Apache is not really serving #474
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#474
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@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.
@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?
@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?
@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.