2

I'm reading the documentation for setting up an HTTP to HTTPS redirect in the AWS Application Load Balancer but I cannot understand what to put as path expression (by the green arrow in the image):

aws screenshot

One guess would be: http://#{host}:#{port}?/#{path}?#{query}?or maybe http://* or maybe something else? For a beginner like me the documentation isn't all that clear...

Thanks!

1 Answer 1

2

The path can be /* or just * -- but if you want to redirect everything to HTTPS, you don't need an extra rule... just edit the default rule to redirect all requests, instead of sending them to the target group.

Note also that on the right hand side, #{port} is wrong if you are redirecting from http to https -- you'll need to set the new port to 443... otherwise the balancer will try to redirect to https://example.com:80 which is definitely not what you want.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.