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# l e a p c o n p r e g # t w w i d o d r m : r e e : a v o t y l y b a b a s i c e i r a e P : d s d h d k x f e c v o d e d b e e p i s m e s c # h e i r c r o r r o c o e m t a t l n e u e a s : s a l : a o S c t e : t s r s r : e t v i r e a p n s s e s d d e e l a r S C t D : : : : : B s r : g v e h r E y R : e e r a y B : : t D e a : r v l P U 8 4 r e s a : e l o G 0 4 u f o a / r e i 3 e a l @ a h : n n u v b c t g t l e b m t h e : t r b e p t : : s . s t w : j : p e f s s b a / : l n a / s c / e m a e c - m v e 0 - 2 s . t a a p g i i . n l g e - t v s 0 e 2 n . c a r p y i p . t l . e o t r s g e / n d c i r r y e p c t t . o o r r y g / d i r e c t o r y After the Change# l e a p c o n p r e g # t w w i d o d r m : r e e : a v o t y l y b a h b a s i c e i r a e P : d t s d h d k x f e c v o d t r e d b e e p i s m e s c # h e i r p e c r o r r o c o e m t a t l n e : d e u e a s : s a l : a o S c t e : t s i n r s r : e t v i r e a p n s s r t t s p e s d d e e l a r S C t D : : e r o c e : : : B s r : g v e h r E c y : h r y R : e e r a y B : t P e m : t D e n : r v l P U 8 i o w m a 4 r e s a : e l o G 0 o i e a n 4 u f o . / r e i n n b : e 3 e a l k a h : n n s t s n u v a c t g t : : e h t l e m m t h e : c t : t r u e p t : u t : s r . s t w r p t : a j : p e e s r f . s s b u a 1 / : e l 2 n a / s 6 c / e 3 m a @ e c g - m m v e a 0 - i 2 s l . t . a a c p g o i i m . n l g e - t v s 0 e 2 n . c a r p y i p . t l . e o t r s g e / n d c i r r y e p c t t . o o r r y g / d i r e c t o r y In the entryPoints section, the redirect configuration has been added as follows:
e n t w r e y b a h P : d t o d t r i r p e n e : d e t s i n s s r t t s p : : e r o c e c y : h r : t P e m 8 i o w m a 0 o i e a n n n b : e s t s n : : e h t c t : u t r p t e s r u e
Summary# There may be better approaches or considerations I have missed, but I hope this serves as a useful reference.