You plan to configure an Azure Application Gateway v2 to handle traffic for a web application. You must ensure that all incoming HTTP requests on port 80 are redirected to HTTPS on port 443 before being forwarded to the backend pool.
Which two of the following components must you configure to accomplish the HTTP-to-HTTPS redirection? (Select two.)
- An HTTP listener configured on port 80.Answer
- A request routing rule that uses a redirect configuration targeting the HTTPS listener.Answer
- CA backend setting with a custom redirection policy targeting port 443.
- DA custom health probe configured to monitor HTTPS port 443 on the backend servers.
Answer
To redirect HTTP traffic to HTTPS, you must configure an HTTP listener on port 80 to receive the incoming traffic and a request routing rule that uses a redirect configuration targeting the HTTPS listener.
Configuring an HTTP listener on port 80 and a request routing rule that uses a redirect configuration targeting the HTTPS listener allows the Application Gateway to receive port 80 traffic and redirect it to the HTTPS listener before it ever reaches the backend pool.
Step-by-Step Solution
Key Concept
HTTP-to-HTTPS redirection on Azure Application Gateway requires routing traffic from an HTTP listener to an HTTPS listener using a request routing rule with redirect configuration.