Comment on Planning to selfhost images and calendar in addition to HTTP(S)

<- View Parent
diminou@lemmy.zip ⁨1⁩ ⁨day⁩ ago

In fact 80 and 443 refer to http and https, those are default ports.

You can in fact use the ports you want for the service you want. I have multiple web services behind the ports 80 and 443, you need one service that is able to get the request at the correct port. This is the role of the reverse proxy.

Apache can assume that role, you go to anything.yourdomain.com and apache will then redirect “anything” to the correct service (with the internal ip and port). So say you want to put nextcloud at 7777 you can tell docker to expose 7777 and redirect it to 443 on nextcloud.

The chain is like that in the case : nextcloud.yourdomain.com > apache > nextcloud is at ip:7777 > redirect the request to 7777 > nextcloud homepage is shown

source
Sort:hotnewtop