From 473152c7920ec04329cfb0237f6ae6c920fdafcc Mon Sep 17 00:00:00 2001 From: koug44 Date: Mon, 29 May 2017 17:32:17 -0400 Subject: [PATCH] Update on apache configuration Added the needed ProxyPass exceptions for 1.4.1 --- Running-Mastodon/Alternatives.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Running-Mastodon/Alternatives.md b/Running-Mastodon/Alternatives.md index bf5e2e1d..5b42eeb9 100644 --- a/Running-Mastodon/Alternatives.md +++ b/Running-Mastodon/Alternatives.md @@ -206,15 +206,16 @@ Setting up Mastodon behind Apache is possible as well, although you will need to SSLCertificateFile example.pem SSLCertificateKeyFile example.key - - + + Header always set Cache-Control "public, max-age=31536000, immutable" - + ProxyPreserveHost On RequestHeader set X-Forwarded-Proto "https" ProxyPass /500.html ! - ProxyPass /oops.png ! + ProxyPassMatch ^(/.*\.(gif|png|svg|ico)$) ! + ProxyPassMatch ^/(emoji|packs|sounds|system) ! ProxyPass /api/v1/streaming/ ws://localhost:4000/ ProxyPassReverse /api/v1/streaming/ ws://localhost:4000/ ProxyPass / http://localhost:3000/