Add ProxyPreserveHose to apache2 example
See
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
