From 2bae2433c5dc35097bca0165ab50a433ef95d738 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 7 Aug 2014 08:56:48 +0000 Subject: Ensure .log files are served with mime-type of text/plain. Stops the server offering logs for download, instead of displaying them. --- mason.configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mason.configure b/mason.configure index 1f28a40a..fb73b01c 100644 --- a/mason.configure +++ b/mason.configure @@ -87,6 +87,15 @@ ln -s ../mason.timer "$ROOT"/etc/systemd/system/multi-user.target.wants/mason.ti cp mason/mason.service "$ROOT"/etc/systemd/system/mason.service ln -s ../mason.service "$ROOT"/etc/systemd/system/multi-user.target.wants/mason.service +########################################################################## +# Set up httpd web server +########################################################################## + cp mason/httpd.service "$ROOT"/etc/systemd/system/httpd.service ln -s ../httpd.service "$ROOT"/etc/systemd/system/multi-user.target.wants/httpd.service + mkdir -p "$ROOT"/srv/mason + +cat >>"$ROOT"/etc/httpd.conf <