I’m beginning to work with cloudflared tunnels. The idea is to access a virtual host on an Apache server via the tunnel.
I have a working virtual host named ww2(dot)blahblah(dot)net. It shares one IP with other virtual hosts
I can access it the old-fashioned way via a ww2(dot)blahblah(dot)net entry in the host file. Works just fine.
Now for the tunnel. The tunnel is set up properly. At Cloudflare, there is a CNAME entry pointing to the tunnel. The tunnel functions.
However, if I browse to ww2(dot)blahblah(dot)net (after taking out the host file entries, of course) I get the content of the index.html in /var/www/html, and not the proper index file in /home/blah/public_html.
Apparently, Apache doesn’t find ww2(dot)blahblah(dot)net in the header, and it proceeds to deliver /var/www/html/index.html
Here is my config.yml:
tunnel: a56ec74c-f72a-49a2-93c6-a6f4cd46737e
credentials-file: /root/.cloudflared/a56ec74c-f72a-49a2-93c6-a6f4cd46737e.json
logfile: /var/log/cloudflared.log
loglevel: info
ingress:
- hostname: ww2(dot)blahblah(dot)net
service: http(colon)//localhost:80 - hostname: ww2(dot)blahblah(dot)net
service: https(colon)//localhost:443 - service: http_status:404
Any ideas?
Sorry for the (dot) and (colon) I had to get around the (quite silly) 4 link limit for noobs]