Add ProxyPreserveHose to apache2 example

See https://github.com/tus/tusd/issues/86#issuecomment-367271450
This commit is contained in:
Marius 2018-02-22 21:16:14 +01:00 committed by GitHub
parent b58a5e377b
commit f5826fa84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -12,9 +12,11 @@
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
# Tell tusd that the HTTPS protocol is used, in order to # In order that tusd can construct correct upload URLs, we tell tusd
# allow constructing correct upload URLs. # that the HTTPS protocol is used and also forward the original Host
# Header.
RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Proto "https"
ProxyPreserveHost on
# Pass requests to tusd server # Pass requests to tusd server
ProxyPass /files http://localhost:1080/files ProxyPass /files http://localhost:1080/files