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