itaquito
CDCloudflare Developers
•Created by itaquito on 5/22/2024 in #workers-help
Workers with itty-router throws an error
Hello! I'm trying to use itty-router in a worker. However, an error is showing when I try to get a path.
This is my index.ts
Does anyone know why this might be happening?
15 replies
CDCloudflare Developers
•Created by itaquito on 4/13/2024 in #general-help
Cloudflare Tunnel with virtual hosts
Hello! I just setup a Cloudflare Tunnel behind a CGNAT. To test, I made a public hostname and now I can see the default page of Nginx, so it works! Woo!
In this same machine I have some virtual hosts made,
phpmyadmin.debian.example.com
and pterodactyl.debian.example.com
. I have the DNS records of these subdomains pointed to the local IP of the machine. Everything works as expected, I can access both of the apps without any issue in my local network.
Next I tried adding these applications to my tunnel. I created a new public hostname phpmyadmindebian.example.com
and added this same hostname to my Nginx site configuration. However, I only see the default page of Nginx in this new public hostname.
Does Cloudflare tunnel doesn't work with virtual hosts? Is there any extra configuration I need to do?
Thanks for your help9 replies