dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Webdav : Rename issue when using with Traefik

Open Diak opened this issue 5 years ago • 0 comments

I used Traefik with this image to offer let's encrypt certificate easily. But when we use a reverse proxy some features don't work well like renaiming. The problem is known and to solve this i used mod_headers (used now only with USE_SSL enabled) and added this line : RequestHeader edit Destination ^https: http: early

The httpd.conf file looks like this :

[...]

<IfDefine !ONLY_SSL>
  Listen 80
</IfDefine>

LoadModule headers_module modules/mod_headers.so
RequestHeader edit Destination ^https: http: early

# dav
[...]

The best way i think is to offer a new environment variable like "BEHIND_HTTPS_REVERSE_PROXY" (but maybe shorter ^^) and if it's "true" to add these two lines. Simple and easy way imho.

Maybe later someone will come with a new issue because he/she wants to have an https reverse proxy and a https webdav container and it should work with a warning because mod_headers is declared twice ^^

Diak avatar Oct 26 '20 22:10 Diak