Add ProxyPreserveHose to apache2 example
See https://github.com/tus/tusd/issues/86#issuecomment-367271450
This commit is contained in:
parent
b58a5e377b
commit
f5826fa84f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue