HTTP to HTTPS
Hello, I need help regarding the use of Cloudflare. Essentially, I'm developing an API, but unfortunately, the server hosting it is using HTTP (and the link is the server's IP address, lol). A colleague told me that with Cloudflare, it's possible to set up a redirection link to HTTPS from my HTTP link. How can I do that? (I'm not sure if it's very clear, let me know otherwise)
5 Replies
ping me
You can use redirects to rewrite HTTPS requests to HTTP but you will have to turn SSL off for that host to be reachable
you could always create a rule to make it so that particular endpoint is on Flexible TLS mode. Then outside connections to Cloudflare are still via TLS, but Cloudflare will connect to your API via HTTP
if the api is hosted on a port other than 443 or 80 then you can redirect from e.g. http://ip:3000 to https://api.example.com using cloudflare tunnel
no need for Cloudflare tunnel, just an origin rule to rewrite the destination port