{"id":514,"date":"2020-10-09T08:19:39","date_gmt":"2020-10-09T13:19:39","guid":{"rendered":"http:\/\/nukeitmike.com\/blog\/?p=514"},"modified":"2020-10-09T08:19:39","modified_gmt":"2020-10-09T13:19:39","slug":"skip-the-www-part-2","status":"publish","type":"post","link":"https:\/\/blog.nukeitmike.com\/index.php\/2020\/10\/09\/skip-the-www-part-2\/","title":{"rendered":"Skip the www (part 2)"},"content":{"rendered":"<p>Many moons ago, I figured out how to get my websites to be accessible without the www subdomain.&#160; When I recently moved one of my three websites to Azure, I didn\u2019t immediately solve that problem.&#160; As the website isn\u2019t ever visited and isn\u2019t important, this isn\u2019t an issue, but I do want to solve it going forward.<\/p>\n<p>So here is the next <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/dns\/tutorial-alias-tm\" target=\"_blank\" rel=\"noopener noreferrer\">tutorial\u2026<\/a><\/p>\n<p>As I posted about previously <a href=\"http:\/\/nukeitmike.com\/blog\/2020\/10\/08\/twram\" target=\"_blank\" rel=\"noopener noreferrer\">(here)<\/a>, I moved that site using Azure Storage static websites, and put it behind a CDN so I could have https, and my own custom domain associated with it.&#160; In this post, we are going to \u2018Configure an alias record to support apex domain names (with CDN) Traffic Manager.&#160; The article is written for Traffic Manager, but we are going to use the same article for CDN.<\/p>\n<p>The important part is the \u201cCreate an alias record\u201d.&#160; You can do this if your DNS is hosted in Azure (mine is).&#160; Go into your DNS zone, click on the + to add a record set.&#160; when it comes up leave the name blank, click \u2018Alias record set\u2019.&#160; When you do that, you get some options.&#160; For this instance, we are looking at the Azure resource alias type.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2020\/10\/image-11.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2020\/10\/image_thumb-11.png?resize=150%2C244&#038;ssl=1\" width=\"150\" height=\"244\" \/><\/a><\/p>\n<p>Be sure to select the correct subscription, and the correct Azure resource.&#160; Notice that a CNAME record for apex domain onboarding will be created to verify the domain.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2020\/10\/image-12.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2020\/10\/image_thumb-12.png?resize=244%2C55&#038;ssl=1\" width=\"244\" height=\"55\" \/><\/a><\/p>\n<p>After that, I tried to go back to the CDN and enable the Custom Domain HTTPS for the apex (root) domain.&#160; evidently that is no longer supported:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2020\/10\/image-13.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"margin: 0px; display: inline; background-image: none;\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/blog.nukeitmike.com\/wp-content\/uploads\/2020\/10\/image_thumb-13.png?resize=244%2C62&#038;ssl=1\" width=\"244\" height=\"62\" \/><\/a><\/p>\n<p>Guess that means I need to \u2018bring my own\u2019.&#160; That is going to be another post.<\/p>\n<p>&#160;<a href=\"https:\/\/theworldrevolvesaroundmichael.com\/\">https:\/\/theworldrevolvesaroundmichael.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many moons ago, I figured out how to get my websites to be accessible without the www subdomain.&#160; When I recently moved one of my three websites to Azure, I didn\u2019t immediately solve that problem.&#160; As the website isn\u2019t ever visited and isn\u2019t important, this isn\u2019t an issue, but I do want to solve it&hellip; <a class=\"more-link\" href=\"https:\/\/blog.nukeitmike.com\/index.php\/2020\/10\/09\/skip-the-www-part-2\/\">Continue reading <span class=\"screen-reader-text\">Skip the www (part 2)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,11,37],"tags":[58,60,66,77,192],"class_list":["post-514","post","type-post","status-publish","format-standard","hentry","category-azure","category-humor","category-web-stuff","tag-cdn","tag-certificate","tag-cname","tag-dns","tag-web-stuff","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pcW544-8i","_links":{"self":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":0,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}