I have a cloudflare tunnel running on my router and successfully serving 192.168.1.1:80 at home.mydomain.com .
I would like to serve several different services from the same subdomain, e.g. AdGuard home running on port 3030.
I would like, then, to have home.mydomain.com/router pointing to 192.168.1.1:80 and home.mydomain.com/adguard pointing to 192.168.1.1:3030.
However, when I add ‘router’ to the optional path, if I then open home.mydomain.com/router in the browser, I get a 404 “The requested URL /router was not found on this server.”
Can anybody suggest what I am doing wrong?
user31312:
However, when I add ‘router’ to the optional path, if I then open home.mydomain.com/router in the browser, I get a 404 “The requested URL /router was not found on this server.
If you hit the /router path from directly in your origin without a tunnel there a website at that path? e.g. if http://192.168.1.1/router doesn’t display the content you’re looking for without a tunnel, it’s not going to with a tunnel.
Hi,
Thanks for your reply.
Is there any way to achieve my goal with a Tunnel - services on different ports accessed through one subdomain?
or
Let’s say you have a WordPress blog on http://=DOMAIN=, and you want to serve your Discourse forums (which run on a different server) from http://=DOMAIN==PATH=. How do you do that? Note: This won’t work for serving multiple Discourse instances...
Reading time: 2 mins 🕑
Likes: 30 ❤
are examples of serving different content based on the specific path being referenced.
The ability to parse the http URI being sent is dependent upon the application configuration for the host/port being specified.
Without knowing the software involved? You’d have to look at it and determine if it can be configured to expect a specific path.
Probably much easier to just use a different hostname for each through the same tunnel.