Hi all
I have a Ubuntu server that hosts multiple Wiki sites.
Just set up the second wiki site and set the tunnel to config to resolve multiple hosts. But the second host connects to the first service. But if I change the 2nd service to something that is incorrect, it does not work.
tunnel: wefswfvefdrgf
credentials-file: /root/.cloudflared/wefswfvefdrgf.json
ingress:
- hostname: wiki1.com
service: http://localhost:80
- hostname: wiki2.com
service: http://localhost:3001
If I connect to http://INTERNALHOSTIP:3001 on my PC (I have VPN into that network) and it works fine.
Any ideas on what I am doing wrong?
fritex
February 18, 2022, 1:55pm
2
Greetings,
Thank you for asking.
jhnogara:
:3001
May I ask is the web app or service using that port like via some proxy / forwarding to some other, or just 3001 “as-is”?
Is the hostname (DNS record) proxied and set to or not?
Are you using wiki2.com
as a web app?
Rather, multiple hostnames on the same host via one Cloudflare tunnel?
Maybe helpful from post below:
The ideal solution for your tunnel:
Configure Apache/Web Server to ip 127.0.0.1 then the appropriate port 80 443 8000 8080 of your choice
Configure Argo Tunnel
Cloudflared tunnel --hostname [hostname] http://localhost:8000
Because the request is initiated from the client, Tunnel is able to expose applications to the internet that are behind a NAT or a firewall without any further port forwarding or configuration.
It’s recommended looking at the response headers your browser is receiving.
WikiJS
Runs a NodeJS server on whatever port one chooses.
Both proxied and using the tunnel CNAME . Both records are identical other than hostname.
Trying to use one tunnel to host multiple TLDs. As it is meant to be able to do that IFAIK?