Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many redirects when using cloudflare #40

Closed
F-alling opened this issue Nov 11, 2024 · 6 comments
Closed

Too many redirects when using cloudflare #40

F-alling opened this issue Nov 11, 2024 · 6 comments
Labels
question Further information is requested

Comments

@F-alling
Copy link

F-alling commented Nov 11, 2024

I try to load my gallery and it says "Too many redirects"
I looked and apparently the site is 301 redirecting to itself.
Site is hosted at https://kitty.falling.page
Headers below.
https://pastebin.com/ERfNngdw

Please let me know if this is something I did.
Thanks

@gautamkrishnar
Copy link
Owner

gautamkrishnar commented Nov 12, 2024

@F-alling a typical github pages pointing domain will look like the following:

> dig gkr.is-a.dev

; <<>> DiG 9.10.6 <<>> gkr.is-a.dev
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45774
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;gkr.is-a.dev.			IN	A

;; ANSWER SECTION:
gkr.is-a.dev.		276	IN	CNAME	gautamkrishnar.github.io.
gautamkrishnar.github.io. 276	IN	A	185.199.109.153
gautamkrishnar.github.io. 276	IN	A	185.199.110.153
gautamkrishnar.github.io. 276	IN	A	185.199.108.153
gautamkrishnar.github.io. 276	IN	A	185.199.111.153

;; Query time: 2 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Tue Nov 12 07:01:46 IST 2024
;; MSG SIZE  rcvd: 132

But you's domain is not returning anything that is github.io check your DNS

> dig kitty.falling.page

; <<>> DiG 9.10.6 <<>> kitty.falling.page
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61063
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;kitty.falling.page.		IN	A

;; ANSWER SECTION:
kitty.falling.page.	32	IN	A	172.67.139.88
kitty.falling.page.	32	IN	A	104.21.62.213

;; Query time: 3 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Tue Nov 12 07:03:27 IST 2024
;; MSG SIZE  rcvd: 68

@gautamkrishnar gautamkrishnar added the question Further information is requested label Nov 12, 2024
@F-alling
Copy link
Author

Thats odd in my cloudflare dashboard its properly setup?
image

@gautamkrishnar
Copy link
Owner

gautamkrishnar commented Nov 12, 2024

  1. try using this github.io as CNAME. not A Record. Check https://community.cloudflare.com/t/setting-up-website-via-github-pages-cloudflare/299512/7
  2. Double check if your https://github.com/F-alling/failing/blob/main/CNAME is correct also in your repo settings.

@F-alling
Copy link
Author

cloudflare tells me I already have a cname record for this? im confused

@gautamkrishnar
Copy link
Owner

feel free to contact Cloudflare. Giving Cloudflare support is beyond the scope of this project.

@F-alling
Copy link
Author

For anyone else having problems turns out having my SSL set to flexible in my cloudflare dashboard was causing issues.

@gautamkrishnar gautamkrishnar pinned this issue Nov 27, 2024
@gautamkrishnar gautamkrishnar changed the title Too many redirects Too many redirects when using cloudflare Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants