[GH-ISSUE #462] Not working with forced HTTPS #324

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

Originally created by @verttex on GitHub (Sep 23, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/462

Hey I'm a bit new to this whole thing but I got through the install process and have it running on mydomain.me:8000. What I am trying to do is have a subdomain point to that address which I have setup, something along the lines of music.mydomain.me.

Right now if I go to that subdomain it shows a white screen and checking the networking tool in chrome shows that I'm getting connections refused because Koel is requesting files through HTTP. I am using Caddy as my webserver and have not found an option to do 'Override ALL' as said in #360. Is there a way to use HTTPS natively with Koel or is this something I'm going to have to go to the Caddy people for?

Thanks!

Originally created by @verttex on GitHub (Sep 23, 2016). Original GitHub issue: https://github.com/koel/koel/issues/462 Hey I'm a bit new to this whole thing but I got through the install process and have it running on mydomain.me:8000. What I am trying to do is have a subdomain point to that address which I have setup, something along the lines of music.mydomain.me. Right now if I go to that subdomain it shows a white screen and checking the networking tool in chrome shows that I'm getting connections refused because Koel is requesting files through HTTP. I am using Caddy as my webserver and have not found an option to do 'Override ALL' as said in #360. Is there a way to use HTTPS natively with Koel or is this something I'm going to have to go to the Caddy people for? Thanks!
kerem closed this issue 2026-02-26 02:32:50 +03:00
Author
Owner

@phanan commented on GitHub (Sep 23, 2016):

Koel is just another PHP installation, so as long as you can run HTTPS+PHP in Caddy (I'm sure you can!), you can do HTTPS Koel. Something like this (I'm don't use Caddy, so fix where you need):

music.mydomain.me. {
    root /www/root/of/your/koel/installation/where/index.php/is/found
}
<!-- gh-comment-id:249155425 --> @phanan commented on GitHub (Sep 23, 2016): Koel is just another PHP installation, so as long as you can run HTTPS+PHP in Caddy (I'm sure you can!), you can do HTTPS Koel. Something like this (I'm don't use Caddy, so fix where you need): ``` music.mydomain.me. { root /www/root/of/your/koel/installation/where/index.php/is/found } ```
Author
Owner

@verttex commented on GitHub (Sep 23, 2016):

It was recommended to me to use Caddy's fastcgi directive for this, but I went ahead and tried that out for the Caddyfile:

music.mydomain.me {
    root /home/jack/koel/
}

and I just got the default PHP file:

<?php

/**
 * Laravel - A PHP Framework For Web Artisans.
 *
 * @author   Taylor Otwell <taylorotwell@gmail.com>
 */

/*

And this is while Koel is running at mydomain.me:8000

<!-- gh-comment-id:249325835 --> @verttex commented on GitHub (Sep 23, 2016): It was recommended to me to use Caddy's [fastcgi](https://caddyserver.com/docs/fastcgi) directive for this, but I went ahead and tried that out for the Caddyfile: ``` music.mydomain.me { root /home/jack/koel/ } ``` and I just got the default PHP file: ``` <?php /** * Laravel - A PHP Framework For Web Artisans. * * @author Taylor Otwell <taylorotwell@gmail.com> */ /* ``` And this is while Koel is running at mydomain.me:8000
Author
Owner

@phanan commented on GitHub (Sep 24, 2016):

mydomain.me:8000 works because it's PHP's internal server. music.mydomain.me doesn't, because you haven't configured your system correctly to run PHP with fastcgi. Please google how to, since I don't use Caddy.

<!-- gh-comment-id:249343654 --> @phanan commented on GitHub (Sep 24, 2016): `mydomain.me:8000` works because it's PHP's internal server. music.mydomain.me doesn't, because you haven't configured your system correctly to run PHP with fastcgi. Please google how to, since I don't use Caddy.
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#324
No description provided.