Overview

In the following article, I introduced an example of running HTTPS-enabled containers using Traefik.

However, (this has since been fixed) the setting to redirect HTTP connections to HTTPS was missing, and accessing port 80 resulted in a “not found” error.

This is a memorandum on how to fix this issue.

Before the Change

leapconpreg#twwidodrm:ree:avotylybabasiceiraeP:dsdhdkxfecvodedbeepismesc#heircrorrocoemtatlneueas:sal:aoScte:tsrsr:etvireapnssesddeelarSCtD:::::Bsr:gvehrEyR:eerayB::tDea:rvlPU84resa:eloG04ufoa/rei3eal@ah:nnuvbctgtlebmthe:trbept::s.stw:j:pefssba/:lna/sc/emaec-mve0-2s.taapgii.nlge-tvs0e2n.carpyip.tl.eotrsge/ndcirryepctt.oorryg/directory

After the Change

leapconpreg#twwidodrm:ree:avotylybahbasiceiraeP:dtsdhdkxfecvodtredbeepismesc#heirpecrorrocoemtatlne:deueas:sal:aoScte:tsinrsr:etvireapnssrttspesddeelarSCtD::eroce:::Bsr:gvehrEcy:hryR:eerayB:tPem:tDen:rvlPU8iowma4resa:eloG0oiean4ufo./reinnb:e3ealkah:nnstsnuvactgt::ehtlemmthe:ct:truept:ut:sr.stwrpt:aj:peesrf.ssbua1/:el2na/s6c/e3ma@ecg-mmvea0-i2sl.t.aacpgoiim.nlge-tvs0e2n.carpyip.tl.eotrsge/ndcirryepctt.oorryg/directory

In the entryPoints section, the redirect configuration has been added as follows:

entwreybahP:dtodtrirpene:detsinssrttsp::erocecy:hr:tPem8iowma0oieannnb:estsn::ehtct:utrptesrue

Summary

There may be better approaches or considerations I have missed, but I hope this serves as a useful reference.