WhatTheHack/017-FrontDoor/Student/Challenge05.md

26 строки
1.3 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2020-09-30 20:25:59 +03:00
# Challenge 5 - Force HTTPS thru Rules Engine
[< Previous Challenge [4]](./Challenge04.md)&nbsp;&nbsp;-&nbsp;&nbsp;**[Home](../README.md)**
## Introduction
We now have a globally scaled website, protected by WAF, and routing traffic for a specific address that uses a different backend to relieve pressure on our current website. Now we have to make sure that all traffic is forced to HTTPS.
We can use the new [Rules Engine in Front Door](https://docs.microsoft.com/en-us/azure/frontdoor/front-door-rules-engine) to specify rules to execute at the edge before sending traffic to your origin.
## Description
For this challenge we are going to:
1. Create a Rules Engine for Front Door and associate to all Routing rules
2. Create a rule that redirects HTTP to HTTPS and it must support any HTTP request that comes in.
## Success Criteria
- Demonstrate the website still works thru Front Door via http://frontdoor.***SITENAME***.contosomasks.com redirects to https://frontdoor.***SITENAME***.contosomasks.com. Also verify that deeper links also redirects to HTTPS version.
## Learning Resources
- [Azure Front Door Rules Engine Matching Criteria](https://docs.microsoft.com/en-us/azure/frontdoor/front-door-rules-engine-match-conditions)
- [Azure Front Door Rules Engine Actions](https://docs.microsoft.com/en-us/azure/frontdoor/front-door-rules-engine-actions)