diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2014-08-07 08:56:48 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2014-08-07 08:56:48 +0000 |
commit | 2bae2433c5dc35097bca0165ab50a433ef95d738 (patch) | |
tree | 4c06ca090b7801f8932f4cb3a845c07b18a5299a | |
parent | ae7614a8f8b70cf44e8f112a7cdf3b7e561a8094 (diff) | |
download | definitions-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.configure | 9 |
1 files changed, 9 insertions, 0 deletions
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 <<EOF +.log:text/plain +EOF |