Emjayen
Emjayen
CDCloudflare Developers
Created by Emjayen on 10/14/2024 in #general-help
Origin rule not working.
I'm trying to remap the destination port in a request dependent upon a subdomain, specifically the final expression looks like (http.host contains "foo.example.org") however this is seemingly not matching/taking effect. What could be the issue?
4 replies
CDCloudflare Developers
Created by Emjayen on 8/4/2024 in #general-help
DNS resolve depending on service.
I need to resolve a domain to a particular address depending on service; essentially: HTTPS (Browser) -> CloudFlare Elsewise -> Origin server As far as I can tell there are no RRs that could coerce this behaviour; I considered SRV's but browsers don't consider them, and URI records are seemingly obsolete. One option would be to map both the origin and CF. The main problem here is that, the particular non-HTTPS client software just relies on whatever address is returned by gethostaddr() and assumes there's only one (unlike browsers, which will attempt others). Relying on the undefined ordering of A records (and everything above to get to gethostaddr()) would be very hacky. The last resort would be doing HTTP redirection at the origin, redirecting to HTTPS/CF.
3 replies
CDCloudflare Developers
Created by Emjayen on 9/22/2023 in #general-help
Port redirection
Is there any means to reroute requests to a different port based on e.g, hostname? For example this is what implicitly occurs when CF unwraps TLS over port 443, rerouting it to port 80 on the host, when "Flexible" is enabled.
3 replies