summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2014-08-07 08:56:48 (GMT)
committerMichael Drake <michael.drake@codethink.co.uk>2014-08-07 08:56:48 (GMT)
commit2bae2433c5dc35097bca0165ab50a433ef95d738 (patch)
tree4c06ca090b7801f8932f4cb3a845c07b18a5299a
parentae7614a8f8b70cf44e8f112a7cdf3b7e561a8094 (diff)
downloaddefinitions-2bae2433c5dc35097bca0165ab50a433ef95d738.tar.gz
Ensure .log files are served with mime-type of text/plain.
Stops the server offering logs for download, instead of displaying them.
-rw-r--r--mason.configure9
1 files changed, 9 insertions, 0 deletions
diff --git a/mason.configure b/mason.configure
index 1f28a40..fb73b01 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 <<EOF
+.log:text/plain
+EOF