mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1213] Incorrect paths to javascript files when using an apache2 alias #686
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#686
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 @DDriggs00 on GitHub (Apr 16, 2020).
Original GitHub issue: https://github.com/koel/koel/issues/1213
Describe the bug
When setting up koel on my media server (accessible under the path: /koel), I am able to get the server working when using
php artisan serve, but when using apache, all browsers (chrome, ff, ie) think that the .js files are at<ip>/public/jsrather than<ip>/koel/public/js.Apache config here
To reproduce
Steps to reproduce the behavior:
php artisan serveExpected behavior
I expected the .js files to be located under the koel directory, like all the php/image/etc. files were located.
Environment
@BrookeDot commented on GitHub (Apr 16, 2020):
Do things work as expected it you remove the alias?
I haven't used Apache in a few years now, but perhaps you need to set up Pretty URLs as described here:
https://laravel.com/docs/5.8/installation#pretty-urls
That's what we do for NGINX with
try_files $uri $uri/ /index.php?$args;@DDriggs00 commented on GitHub (Apr 17, 2020):
I tried what was in the link, but it didn't work, and I eventually just switched ports and put it at the root.
@phanan commented on GitHub (Apr 21, 2020):
Koel doesn't officially support installation in a subdirectory/path, so it's totally up to you to hack your way around it to make it work ;)