How does Yunohost know which app to point to when using a tunnel/proxy?

My YunoHost server

Hardware: Raspberry Pi 3B
YunoHost version: 11.0.9 (64-bit)
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description

I am using Yunohost with a proxy/tunnel service. I have the main domain: hosted.my-example-domain.com and a subdomain at: nextcloud.example-domain.com

In my proxy/tunnel, I point the services like so:

hosted.my-example-domain.com/ TO https://localhost:443
nextcloud.example-domain.com TO https://localhost:443

How does Yunohost ‘know’ to send the requests to the correct apps (which it does)? I thought I needed to configure a special localhost request for each subdomain app.

Hi, via the reverse proxy server nginx

So as long as the request points to the appropriate subdomain and then the proxy points to localhost (I assume localhost is the reverse proxy), it will redirect to the correct app?

Im not very good in Nginx details and YH config, but I guess the answer is yes.

I have a similar setup with a VPN tunnel to my YH and also using different domains and it works very well.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.