Skip to content

Redirect HTTPS and AutoTLS #2203

Answered by aldas
oka-tan asked this question in Q&A
Jun 19, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi, if this is the only block contains all "echo.Start*" methods that you call I assume problem is that in production mode you are only starting HTTPS listener and are missing open port for HTTP. HTTPS and HTTP are not served on same port.

If you want to have redirect from HTTP to HTTPS you need to start 2 listeners - one for HTTP and one for HTTPS.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@oka-tan
Comment options

@aldas
Comment options

Answer selected by oka-tan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants