From: Lucian Mogosanu Date: Fri, 30 Nov 2018 13:20:03 +0000 (+0200) Subject: blog: Support busbox httpd.conf in run-site X-Git-Tag: v0.11~109 X-Git-Url: https://git.mogosanu.ro/?a=commitdiff_plain;h=096b58f3e2e912ac35f1caf51122a58993a61ac0;p=thetarpit.git 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. --- 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