Canister I want to redirect to:
gerhh-hiaaa-aaaah-aappq-cai.raw.ic0.app
However, this is the error I’m greeted with when I try to visit that page
What other things I’ve tried:
On Cloudflare, I’ve tried turning off proxy mode
I’ve tried to point the domain to both <canister_id>.ic0.app and <canister_id>.raw.ic0.app
Am I doing something wrong or is this not supposed to work like this? In case others had success redirecting their domains, please share how you’re doing it
Tagging @janeshchhabra as he suggested I post here during the Discord dev call
The boundary node needs the canister id in the request that reaches it; else it has no idea what docs.gobazzinga.io maps to. So a simple CNAME doesn’t work (unless boundary nodes start resolving CNAMEs. Maybe that would work.)
I don’t know precisely what “proxy mode” means here. A certain kind of proxying (namely one that sets the Host header to gerhh-hiaaa-aaaah-aappq-cai.raw.ic0.app) should work I think. But then, you say it doesn’t, so not sure here.
Ah, currently you are forwarding to the non-raw URL. In that case, it’s the service worker that tries to find the canister id. And because that runs in the browser, the proxy doesn’t help.
This requires placing a .htaccess file which means there is an Apache server hosted somewhere with Fleek using that to do the redirect. You’ll probably have a faster redirect using Cloudflare. But this will work also