From f5826fa84fe785b161fc41cfd2fef3dc0bce04bb Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 22 Feb 2018 21:16:14 +0100 Subject: [PATCH] Add ProxyPreserveHose to apache2 example See https://github.com/tus/tusd/issues/86#issuecomment-367271450 --- docs/apache2.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/apache2.conf b/docs/apache2.conf index 9718504..f43a565 100644 --- a/docs/apache2.conf +++ b/docs/apache2.conf @@ -12,9 +12,11 @@ SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key - # Tell tusd that the HTTPS protocol is used, in order to - # allow constructing correct upload URLs. + # In order that tusd can construct correct upload URLs, we tell tusd + # that the HTTPS protocol is used and also forward the original Host + # Header. RequestHeader set X-Forwarded-Proto "https" + ProxyPreserveHost on # Pass requests to tusd server ProxyPass /files http://localhost:1080/files