Fix error pages

This commit is contained in:
SALLEYRON Julien 2018-09-17 20:40:04 +02:00 committed by Traefiker Bot
parent f3aefe282c
commit 0ae8cd9a9d

View file

@ -184,6 +184,11 @@ func (s *Server) loadFrontendConfig(
return nil, err
}
// Handler used by error pages
if backendsHandlers[entryPointName+providerName+frontend.Backend] == nil {
backendsHandlers[entryPointName+providerName+frontend.Backend] = lb
}
if healthCheckConfig != nil {
backendsHealthCheck[entryPointName+providerName+frontendHash] = healthCheckConfig
}