cloudflare tunnel with multiple hostname/virtual host reddit / selfhosted ---------------------------------------------------------------------- cjoenic · 2023-10-01 12:59 currently i have few websites running on a single apache instance. everything works with the typical port forward setup. let say theres 5 websites with different domain names (some of it are sub-domain) however, due to some special circumstances, some websites need to move to other server, different location, behind cgnat. i already set the tunnel up, however for whatever reason, it doesnt seems to work/point to the wrong websites/application, the default apache page to exact. the domain/subdomain is not directly managed by me. but it is already pointed to my server through cname records. i do have other domain (unlrelated to the website) managed with cloudflare, thats what it tried to use with for the tunnel. before: website1.com -> (cname) s1.server.net website2.com -> (cname) s1.server.net after: website1.com -> (tunnel address) tunnel1.server.net website2.com -> (tunnel address) tunnel2.server.net is there any proper/correct way to do this? ---------------------------------------------------------------------- Deathwich · 2023-10-01 15:00 The fact it shows the Apache default page is a good sign, that means your cloudflare tunnel is working. Try looking for issues with your Apache config w/ cloudflare tunnel ---------------------------------------------------------------------- ericesev · 2023-10-01 16:42 In the Cloudflare tunnel settings for the Public Hostname under the 'HTTP Settings', do you have a HTTP Host Header set? If so, clear it and see if that resolves the issue. ---------------------------------------------------------------------- cjoenic · 2023-10-02 08:05 actually i did play around with that host header settings, by 'specifying' the correct server name (same as vhost) actually makes it point to the right page. but somehow it redirect to different domain/ and the login simply doesnt work. for example, the websites is [website.com](https://website.com) . for vhost is also set to [website.com](https://website.com) (obviously) . and for the tunnel, im using [website.server.net](https://website.server.net) as tunnel address.