Bypass proxy for subdirectory
Hey,
I need to serve some txt and xml files in a subdirectory which should not be proxied by CF.
One way could be to create another dns entry which is not proxied and need some research how to solve it with nginx.
Another way could be by Cloudflare to bypass given subdirectories.
Would be happy about some help.
2 Replies
You can't bypass proxy just for subdirectories and not the entire hostname/dns record, just due to the way DNS Works. When you go to a hostname like test.example.com/cookies, your DNS resolver looks up
test.example.com
and gets the A/AAAA IPs for it. They're either going to be proxied (so CF IPs) or unproxied and just the raw DNS records you input. DNS does not deal with, and has no idea about the path/subdirectories.
You could have a different unproxied hostname/dns record yeaThank you very much.