How to enable https redirect for docker-dokuwiki

The dokuwiki docker image was easy to setup and it works fine. What I could not accomplish yet was to enable a https redirect. According to the dokuwiki documentation this can be achieved by using the following .htaccess configuration:

RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R,L]

I created a .htaccess file at /app/www/public in the docker image, but this has no effect.
Any help appreciated!

I overlooked that this image uses nginx - so I had to alter the nginx configuration instead of the htacess.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.