Custom hostname not getting redirected

Have you searched for an answer?
Yes.

Describe the issue you are having:
I’m figuring out how Cloudflare for SaaS works. After enabling it, I have created a fallback origin ([fallback.abc.com] and I created a custom hostname ([test.xyz.com]. The certificate and hostname status are active. I have also created a CNAME at [xyz.com] that points [test.xyz.com] at [fallback.abc.com]. In addition to that, I added a page rule that redirects [test.xyz.com] to [fallback.abc.com]. When I try to reach [test.xyz.com] this error is displayed “response 404 (backend NotFound), service rules for the path non-existent”. Is there something that I’m doing wrong or missing?

What error message or number are you receiving?
response 404 (backend NotFound), service rules for the path non-existent

You should not redirect from the custom hostname to the fallback origin. Cloudflare already sends requests for test.xyz.com to fallback.abc.com when test.xyz.com is configured as a custom hostname.

This error is coming from your origin. You should ensure you have added a virtual host for test.xyz.com in your web server configuration.

Thanks albert.

I’m using nginx and I have configured a virtual host for test.xyz.com but the same error keeps showing.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.