[Support Request]: css not loading #2593

Closed
opened 2026-02-05 04:34:55 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @monarrk on GitHub (Jan 21, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

The same as the couple of issues before this one, the CSS for bookstack isn't loading on my site (https://wiki.5066.team). I'm using lighttpd on FreeBSD. It seems to function normally, just with no CSS.

this is my lighttpd vhost configuration:

$HTTP["host"] == "wiki.5066.team" {
        var.server_name = "wiki.5066.team"

        server.name = server_name
        ## example how to include another config:
        ## use trigger before download
        ## 
        # include "conf.d/trigger_b4_dl.conf"

        server.document-root = "/usr/local/www/bookstack/public"
        ##
        ## use a seperate access log file
        ## At the moment you cant have different error log files.
        ##
        accesslog.filename          = log_root + "/" + server_name + "/access.log"
        server.errorlog = log_root + "/" + server_name + "/error.log"

        # fix bookstack routing
        url.rewrite-once = ( "/*$" => "/index.php?${qsa}" )
}

Exact BookStack Version

v21.12.2

Log Content

2022-01-21 08:08:35: (gw_backend.c.285) establishing connection failed: socket: tcp:127.0.0.1:9999: Connection refused

PHP Version

PHP 8.0.14 (cgi-fcgi) (built: Jan 2 2022 01:17:28)

Hosting Environment

FreeBSD 13.0 with lighttpd/1.4.63

Originally created by @monarrk on GitHub (Jan 21, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario The same as the couple of issues before this one, the CSS for bookstack isn't loading on my site (https://wiki.5066.team). I'm using lighttpd on FreeBSD. It seems to function normally, just with no CSS. this is my lighttpd vhost configuration: ``` $HTTP["host"] == "wiki.5066.team" { var.server_name = "wiki.5066.team" server.name = server_name ## example how to include another config: ## use trigger before download ## # include "conf.d/trigger_b4_dl.conf" server.document-root = "/usr/local/www/bookstack/public" ## ## use a seperate access log file ## At the moment you cant have different error log files. ## accesslog.filename = log_root + "/" + server_name + "/access.log" server.errorlog = log_root + "/" + server_name + "/error.log" # fix bookstack routing url.rewrite-once = ( "/*$" => "/index.php?${qsa}" ) } ``` ### Exact BookStack Version v21.12.2 ### Log Content 2022-01-21 08:08:35: (gw_backend.c.285) establishing connection failed: socket: tcp:127.0.0.1:9999: Connection refused ### PHP Version PHP 8.0.14 (cgi-fcgi) (built: Jan 2 2022 01:17:28) ### Hosting Environment FreeBSD 13.0 with lighttpd/1.4.63
OVERLORD added the 🐕 Support label 2026-02-05 04:34:55 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 22, 2022):

Hi @monarrk,
Looking at your instance, the paths appear correct but none of the static files are being served as expected from the public folder. I'm not familiar with lighthttpd but I'm assuming it's the rewrite rule that's causing all requests, including static files, to be routed through the PHP app.

@ssddanbrown commented on GitHub (Jan 22, 2022): Hi @monarrk, Looking at your instance, the paths appear correct but none of the static files are being served as expected from the `public` folder. I'm not familiar with lighthttpd but I'm assuming it's the rewrite rule that's causing all requests, including static files, to be routed through the PHP app.
Author
Owner

@monarrk commented on GitHub (Jan 22, 2022):

Ah that was it! I had to change the rewrite rule to url.rewrite-if-not-file. Thank you!

@monarrk commented on GitHub (Jan 22, 2022): Ah that was it! I had to change the rewrite rule to `url.rewrite-if-not-file`. Thank you!
Author
Owner

@ssddanbrown commented on GitHub (Jan 23, 2022):

Glad to hear it's solved! Will therefore close this off.

@ssddanbrown commented on GitHub (Jan 23, 2022): Glad to hear it's solved! Will therefore close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2593