Why is my Github-hosted site responding with HTTP 302 instead of 200?

前端 未结 3 1886
无人及你
无人及你 2021-02-01 08:14

I own the domain penkov.id.au. I host a blog using github, with an A record for the subdomain michael.penkov.id.au pointing to the github pages server (204.232.175.

3条回答
  •  不要未来只要你来
    2021-02-01 08:45

    Here's what I heard from github support:

    The A record pointing to 204.232.175.78 is what's causing the 302 redirect.

    Replacing the A record with a CNAME (pointing to mpenkov.github.com) in my DNS settings fixed the problem.

    For reference, here's what my DNS record looks like now:

    misha@misha-antec:~$ dig michael.penkov.id.au +nocomments +nocmd +nostats
    
    ; <<>> DiG 9.8.1-P1 <<>> michael.penkov.id.au +nocomments +nocmd +nostats
    ;; global options: +cmd
    ;michael.penkov.id.au.          IN      A
    michael.penkov.id.au.   85536   IN      CNAME   mpenkov.github.com.
    mpenkov.github.com.     2736    IN      CNAME   github.map.fastly.net.
    github.map.fastly.net.  25      IN      A       103.245.222.133
    

提交回复
热议问题