{"id":14965,"date":"2020-08-04T07:44:51","date_gmt":"2020-08-04T07:44:51","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=14965"},"modified":"2022-03-14T08:55:41","modified_gmt":"2022-03-14T08:55:41","slug":"create-a-front-door-with-http-to-https-redirection","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/","title":{"rendered":"Create a Front Door with HTTP to HTTPS redirection"},"content":{"rendered":"\n<p>This guide will show you how to make a front door that redirects from HTTP to HTTPS. You may construct a Front Door with a certificate for TLS termination using the Azure interface. A routing rule is used to redirect HTTP traffic to HTTPS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-front-door-with-an-existing-web-app-resource\"><strong>Create a Front Door with an existing Web App resource<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Sign in to the Azure portal <\/li><li>Click&nbsp;<strong>Create a resource<\/strong>&nbsp;found on the upper left-hand corner of the Azure portal.<\/li><li>Search for&nbsp;<strong>Front Door<\/strong>&nbsp;using the search bar and once you find the resource type, click&nbsp;<strong>Create<\/strong>.<\/li><li>Choose a subscription and then either use an existing resource group or create a new one. Note, the location asked in the UI is for the resource group only. Your Front Door configuration will get deployed across all of&nbsp;Azure Front Door&#8217;s POP locations.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Click&nbsp;<strong>Next<\/strong>&nbsp;to enter the configuration tab. The configuration for Front Door happens in three steps &#8211; adding a default frontend host, adding backends in a backend pool and then creating routing rules to map the routing behavior for frontend host.<\/li><li>Click the &#8216;<strong>+<\/strong>&#8216; icon on the&nbsp;<em>Frontend hosts<\/em>&nbsp;to create a frontend host, enter a globally unique name for your default frontend host for your Front Door (<code>\\&lt;**name**\\&gt;.azurefd.net<\/code>). Click&nbsp;<strong>Add<\/strong>&nbsp;to proceed to the next step.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Further steps<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Click the &#8216;<strong>+<\/strong>&#8216; icon on the&nbsp;<em>Backend pools<\/em>&nbsp;to create a backend pool. Provide a name for the backend pool and then click &#8216;<strong>Add a backend<\/strong>&#8216;.<\/li><li>Select the Backend Host Type as&nbsp;<em>App service<\/em>. Select the subscription where your web app is hosted and then select the specific web app from the dropdown for&nbsp;<strong>Backend host name<\/strong>.<\/li><li>Click&nbsp;<strong>Add<\/strong>&nbsp;to save the backend and click&nbsp;<strong>Add<\/strong>&nbsp;again to save the backend pool config.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Click the &#8216;<strong>+<\/strong>&#8216; icon on the&nbsp;<em>Routing rules<\/em>&nbsp;to create a route. Provide a name for the route, say &#8216;HttpToHttpsRedirect&#8217;, and then set the&nbsp;<em>Accepted Protocols<\/em>&nbsp;field to&nbsp;<strong>&#8216;HTTP only&#8217;<\/strong>. Ensure that the appropriate&nbsp;<em>frontend host<\/em>&nbsp;is selected.<\/li><li>On the&nbsp;<em>Route Details<\/em>&nbsp;section, set the&nbsp;<em>Route Type<\/em>&nbsp;to&nbsp;<strong>Redirect<\/strong>, ensure that the&nbsp;<em>Redirect type<\/em>&nbsp;is set to&nbsp;<strong>Found (302)<\/strong>&nbsp;and&nbsp;<em>Redirect protocol<\/em>&nbsp;is set to&nbsp;<strong>HTTPS only<\/strong>.<\/li><li>Click Add to save the routing rule for HTTP to HTTPS redirect.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Add another routing rule for handling the HTTPS traffic. Click the &#8216;<strong>+<\/strong>&#8216; sign on the&nbsp;<em>Routing rules<\/em>&nbsp;and provide a name for the route, say &#8216;DefaultForwardingRoute&#8217;, and then set the&nbsp;<em>Accepted Protocols<\/em>&nbsp;field to&nbsp;<strong>&#8216;HTTPS only&#8217;<\/strong>. Ensure that the appropriate&nbsp;<em>frontend host<\/em>&nbsp;is selected.<\/li><li>On the Route Details section, set the&nbsp;<em>Route Type<\/em>&nbsp;to&nbsp;<strong>Forward<\/strong>, ensure that the right backend pool is selected and the&nbsp;<em>Forwarding Protocol<\/em>&nbsp;is set to&nbsp;<strong>HTTPS only<\/strong>.<\/li><li>Click Add to save the routing rule for request forwarding.<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>Click&nbsp;<strong>Review + create<\/strong>&nbsp;and then&nbsp;<strong>Create<\/strong>, to create your Front Door profile. Go to the resource once created.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-a-custom-domain-to-your-front-door-and-enable-https-on-it\"><strong>Add a custom domain to your Front Door and enable HTTPS on it<\/strong><\/h3>\n\n\n\n<p>The following steps showcase how you can add a custom domain on an existing Front Door resource and then enable HTTP to HTTPS redirection on it.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"add-a-custom-domain\"><strong>Add a custom domain<\/strong><\/h4>\n\n\n\n<p>In this example, you add a CNAME record for the&nbsp;<code>www<\/code>&nbsp;subdomain (for example,&nbsp;<code>www.contosonews.com<\/code>).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"create-the-cname-record\"><strong>Create the CNAME record<\/strong><\/h4>\n\n\n\n<p>Add a CNAME record to map a subdomain to your Front Door&#8217;s default frontend host (<code>&lt;name&gt;.azurefd.net<\/code>, where&nbsp;<code>&lt;name&gt;<\/code>&nbsp;is the name of your Front Door profile).<\/p>\n\n\n\n<p>For the&nbsp;<code>www.contoso.com<\/code>&nbsp;domain, as an example, add a CNAME record that maps the name&nbsp;<code>www<\/code>&nbsp;to&nbsp;<code>&lt;name&gt;.azurefd.net<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"onboard-the-custom-domain-on-your-front-door\"><strong>Onboard the custom domain on your Front Door<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>On the Front Door designer tab, click on &#8216;+&#8217; icon on the Frontend hosts section to add a new custom domain.<\/li><li>Enter the fully qualified custom DNS name in the custom host name field, example&nbsp;<code>www.contosonews.com<\/code>.<\/li><li>Once the CNAME mapping from the domain to your Front Door is validated, click on&nbsp;<strong>Add<\/strong>&nbsp;to add the custom domain.<\/li><li>Click&nbsp;<strong>Save<\/strong>&nbsp;to submit the changes.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"enable-https-on-your-custom-domain\"><strong>Enable HTTPS on your custom domain<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>Click on the custom domain that was added and under the section&nbsp;<strong>Custom domain HTTPS<\/strong>, change the status to&nbsp;<strong>Enabled<\/strong>.<\/li><li>You can leave the&nbsp;<strong>Certificate management type<\/strong>&nbsp;set to&nbsp;<em>Front Door managed<\/em>&nbsp;for the free certificate maintained, managed, and autorotated by Front Door. You can also choose to use your own custom TLS\/SSL certificate stored with Azure Key Vault. This tutorial assumes that the use of Front Door managed certificate.<\/li><li>Click on&nbsp;<strong>Update<\/strong>&nbsp;to save the selection and then click&nbsp;<strong>Save<\/strong>.<\/li><li>Click&nbsp;<strong>Refresh<\/strong>&nbsp;after a couple of minutes and then click on the custom domain again to see the progress of certificate provisioning.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-the-routing-rules-for-the-custom-domain\"><strong>Configure the routing rules for the custom domain<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Click on the redirect routing rule created earlier.<\/li><li>Furthermore, Click on the dropdown for Frontend hosts and select your custom domain to apply this route for your domain as well.<\/li><li>Also, Click&nbsp;<strong>Update<\/strong>.<\/li><li>Do the same operation for the other routing rule as well that is, for your forwarding route to add the custom domain.<\/li><li>Click&nbsp;<strong>Save<\/strong>&nbsp;to submit your changes.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to the home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation &#8211; <\/strong><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/bs-latn-ba\/azure\/frontdoor\/front-door-how-to-redirect-https\" target=\"_blank\">Create a Front Door with HTTP to HTTPS redirection using the Azure portal<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to make a front door that redirects from HTTP to HTTPS. You may construct a Front Door with a certificate for TLS termination using the Azure interface. A routing rule is used to redirect HTTP traffic to HTTPS. Create a Front Door with an existing Web App resource Sign&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-14965","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create a Front Door with HTTP to HTTPS redirection<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create a Front Door with HTTP to HTTPS redirection.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a Front Door with HTTP to HTTPS redirection\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create a Front Door with HTTP to HTTPS redirection.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-14T08:55:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/\",\"name\":\"Create a Front Door with HTTP to HTTPS redirection\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-04T07:44:51+00:00\",\"dateModified\":\"2022-03-14T08:55:41+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create a Front Door with HTTP to HTTPS redirection.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Front Door with HTTP to HTTPS redirection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a Front Door with HTTP to HTTPS redirection","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create a Front Door with HTTP to HTTPS redirection.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/","og_locale":"en_US","og_type":"article","og_title":"Create a Front Door with HTTP to HTTPS redirection","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create a Front Door with HTTP to HTTPS redirection.","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-14T08:55:41+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/","name":"Create a Front Door with HTTP to HTTPS redirection","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-04T07:44:51+00:00","dateModified":"2022-03-14T08:55:41+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create a Front Door with HTTP to HTTPS redirection.","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-a-front-door-with-http-to-https-redirection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Create a Front Door with HTTP to HTTPS redirection"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=14965"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14965\/revisions"}],"predecessor-version":[{"id":52780,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14965\/revisions\/52780"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=14965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=14965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=14965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}