Cloudflare Zero-Trust Access on subdomain with port.
Hello,
I added Access to my subdomain
<subdomain>.<domain>.pt
, when I access it, it shows the authentication page, but when I open through <subdomain>.<domain>.pt:8443
it gives error 1043 instead of showing the authentication page.
Is it not possible to use different ports with Access?
Thank you6 Replies
Access should cover all ports, but it does strip the port out / default to normal port after you go through the flow. Perhaps you just accessed it too soon, maybe try in incognito
You are correct, now it works tested right after deploying the rule xD
Thank you
@chaika.me I spoke too soon, it does not work. It redirects to the login page, but on successful login it redirects to the domain without the port...
yea that was in the first sentence of my message lol
I don't know if there's a way around that, although you could just use a specific subdomain for it and origin rules (or a tunnel)
I just don't want to put nginx on top of that, because that page is what I use to manage all my containers, including nginx, if nginx goes down, I would lose access to it... Otherwise I could setup Authelia on top of it, but without nginx no luck...
I will check out the redirects
If you have a website on 8443, you can
1: Make a new subdomain for it (i.e my-app.domain.com)
2: Make an Origin Rule for it,
hostname
equals
my-app.domain.com
, Dest. Port overwrite 8443
3. Make an Access Policy for that subdomain
4. SuccessIt's working 😄
Thank you