diff options
| author | Christian Cleberg <[email protected]> | 2025-11-11 20:56:22 -0600 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2025-11-11 20:56:22 -0600 |
| commit | af67e996dc93ade1acd4eed47d25da55c0c63b50 (patch) | |
| tree | 62eb19df535a82bec74ef012fa7fbb0969c54106 /content/blog/2020-08-22-redirect-github-pages.org | |
| parent | 4a48163d5b84faacfb486ecde18b2b7733d21c65 (diff) | |
| download | cleberg.net-af67e996dc93ade1acd4eed47d25da55c0c63b50.tar.gz cleberg.net-af67e996dc93ade1acd4eed47d25da55c0c63b50.tar.bz2 cleberg.net-af67e996dc93ade1acd4eed47d25da55c0c63b50.zip | |
fix grammar in 2020 posts
Diffstat (limited to 'content/blog/2020-08-22-redirect-github-pages.org')
| -rw-r--r-- | content/blog/2020-08-22-redirect-github-pages.org | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/content/blog/2020-08-22-redirect-github-pages.org b/content/blog/2020-08-22-redirect-github-pages.org index d7e92a2..2bcee18 100644 --- a/content/blog/2020-08-22-redirect-github-pages.org +++ b/content/blog/2020-08-22-redirect-github-pages.org @@ -7,8 +7,8 @@ ** Step 1 -Add a new file CNAME to your GitHub Pages repository containing only one line: -your top-level domain name. E.g.: =example.com= +Add a new file called =CNAME= (canonical name) to your GitHub Pages repository +containing only one line: your top-level domain name. E.g.: =example.com= ** Step 2 @@ -17,11 +17,12 @@ your top-level domain name. E.g.: =example.com= 2.1: Remove all other top-level records (prefixed with @) of type A from your DNS configuration. -2.2: Remove a CNAME record for the second-level domain www if it is present. +2.2: Remove a CNAME record for the second-level domain =www=, if it is present. ** Step 3 -Add these 5 entries to the very top of your DNS configuration: +Add these 5 entries to the very top of your domain name system (DNS) +configuration: #+begin_src txt @ A 185.199.108.153 @@ -41,7 +42,7 @@ immediately. They can take up to a full day to propagate. * Long answer This issue has two sides. One is the DNS configuration itself. Another one is -the way GitHub Pages will forward HTTP requests. +the way GitHub Pages will forward hypertext transfer protocol (HTTP) requests. We need to know a few things to understand what GitHub is trying to say in their documentation. @@ -52,7 +53,7 @@ There are two types of DNS records which interest us: CNAME and A. =A= is also known as =Apex= or sometimes as =root entry=. It forwards requests to a specified fixed IP address. =CNAME= entry forwards requests to a specified -URL (actual valid plain text URL, not an IP address). +URL (actual valid plain text URL, not an internet protocol (IP) address). ** DNS Load balancing @@ -82,11 +83,10 @@ URL address (e.g. =username.github.io=) instead of a fixed IP address. ** How GitHub Pages treats HTTP requests -After a DNS request for =your_github_username.github.io= is resolved -into an IP address, e.g. =185.199.108.153= your browser sends an HTTP -request to that server with an HTTP header =Host=. Below are =curl= -examples that load the same website (these examples might not work if -you are behind a proxy server): +After a DNS request for =your_github_username.github.io= is resolved into an IP +address, e.g. =185.199.108.153= your browser sends an HTTP request to that +server with an HTTP header =Host=. Below are =curl= examples that load the same +website (these examples might not work if you are behind a proxy server): #+begin_src sh curl --header "Host: your_github_username.github.io" http://185.199.108.153/ |
