1. The problem I’m having:
CSS is not loading on my fileshelter site due to wrong MIME type. Everything works normally otherwise.
2. Error messages and/or full log output:
GET
https://vps6.dedyn.io/files/share-create
[HTTP/2 200 OK 62ms]
InstallTrigger is deprecated and will be removed in the future. constants.js:50:14
GET
https://vps6.dedyn.io/files/share-create?wtd=l68MDjWh2oXjyu4b&request=style&page=1
[HTTP/2 200 OK 153ms]
Failed to get subsystem status for purpose
Object { rejected: true, message: Error }
content-script.js:95:21
Some cookies are misusing the recommended “SameSite“ attribute 3
GET
https://vps6.dedyn.io/files/resources/themes/bootstrap/5/main.css
[HTTP/2 200 OK 62ms]
GET
https://vps6.dedyn.io/files/resources/moz-transitions.css
[HTTP/2 200 OK 64ms]
GET
https://vps6.dedyn.io/files/css/fileshelter.css
[HTTP/2 200 OK 60ms]
GET
https://vps6.dedyn.io/files/resources/font-awesome/css/font-awesome.min.css
[HTTP/2 200 OK 87ms]
The stylesheet https://vps6.dedyn.io/files/css/fileshelter.css was not loaded because its MIME type, “text/html”, is not “text/css”. share-create
The stylesheet https://vps6.dedyn.io/files/resources/themes/bootstrap/5/main.css was not loaded because its MIME type, “text/html”, is not “text/css”. share-create
The stylesheet https://vps6.dedyn.io/files/resources/moz-transitions.css was not loaded because its MIME type, “text/html”, is not “text/css”. share-create
The stylesheet https://vps6.dedyn.io/files/resources/font-awesome/css/font-awesome.min.css was not loaded because its MIME type, “text/html”, is not “text/css”. share-create
GET
https://vps6.dedyn.io/files/resources/themes/bootstrap/5/bootstrap.bundle.min.js
[HTTP/2 200 OK 54ms]
The script from “https://vps6.dedyn.io/files/resources/themes/bootstrap/5/bootstrap.bundle.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
share-create
Uncaught SyntaxError: expected expression, got '<'
bootstrap.bundle.min.js:1
GET
https://vps6.dedyn.io/favicon.ico
[HTTP/2 200 OK 0ms]
3. Caddy version:
v2.6.4
4. How I installed and ran Caddy:
a. System environment:
Installed from epel
repo on AlmaLinux 9.2 x86_64
b. Command:
systemctl start caddy
c. Service/unit/compose file:
Using the default systemd unit file.
d. My complete Caddy config:
https://vps6.dedyn.io {
redir /jellyfin /jellyfin/
handle /jellyfin/* {
reverse_proxy 10.8.0.1:8096
}
redir /files /files/
handle /files/* {
reverse_proxy localhost:5091
}
handle {
respond "You must've lost your way, wanderer!"
}
}