Hello all. Im sure this has been asked before because when i search for it something always comes up, but the results always aren’t quite the answer that I’m looking for. Or it seems that way atleast.
OK so i have a web app running at digital ocean called CloudPanel. DNS is obviously hosted with Cloudflare. I created the A record as a cached record type so that I can take advantage of all of Cloudflare’s goodness. Initially what got me looking at Cloudflare was just an awesome DNS provider, but then when i read digital ocean’s setup guide for CloudPanel it mentioned how to integrate lets encrypt to get SSL working dynamically and i thought that was pretty damn cool so i started looking at what Cloudflare could actually do and I was absolutely blown away.
Right now the thing I’m trying to achieve is i want when someone goes to http or https but lets just focus on the https.
If someone goes to: [https://] CloudPanel [dot]mydomainname[dot]com:8443/* I want the port forwarded from port 8443 to 443 and the URL to the user is functional as [https://]CloudPfanel[dot.]mydomainname[dot.]com/*
As type this out, I am wondering if this is two different things i need to do? (3 if you include the http to https should someone not specifically type https)
Does clourflare have a magical way of making everything over port 8443 go thru port 443 and then rewriting the URL so to the user lets set they goto [https://] cloudpanel [dot].mydomainname[dot.]com/* in the backend its really sending the traffic to [https://]cloudpanel[dot.]mydomainname[dot.]com:8443/*
Also i would love it if someone typed in [http://] cloudpanel [dot.]mydomainname[dot.]com/* if it re-wrote to [https://] cloudpanel[dot.] mydomainname[dot.] com/*
For all of the above functionality to happen is that 3 different things I need to implement on Cloudflare’s system? What do i need to do to make this magic happen? Thanks so much guys and gals. Cheers!