From 096b58f3e2e912ac35f1caf51122a58993a61ac0 Mon Sep 17 00:00:00 2001 From: Lucian Mogosanu Date: Fri, 30 Nov 2018 15:20:03 +0200 Subject: [PATCH] blog: Support busbox httpd.conf in run-site This is legacy support stuff, I expect it to go away once the proper tlbs (with Lisp-based httpd) is ready. Basically, busybox's httpd comes with limited MIME support, which breaks things like external SVG file rendering. This is one way to fix it. --- blog.lisp | 3 +++ httpd.conf | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 httpd.conf diff --git a/blog.lisp b/blog.lisp index 9471fc8..9e12271 100644 --- a/blog.lisp +++ b/blog.lisp @@ -286,6 +286,9 @@ (sb-ext:run-program "/bin/busybox" (list "httpd" "-f" "-p" "8000" + "-c" (concatenate 'string + *lbs-base* + "httpd.conf") "-h" *lbs-site*) :wait nil))) ((and (not *busybox-process*) kill) diff --git a/httpd.conf b/httpd.conf new file mode 100644 index 0000000..8f9e4ac --- /dev/null +++ b/httpd.conf @@ -0,0 +1,4 @@ +# Busybox httpd conf, for testing site before deployment. + +# MIME types +.svg:image/svg+xml -- 1.7.10.4