This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/WArmstrong on 2023-07-03 13:29:55+00:00.


Hi, perhaps someone would be able to help? I’m struggling to understand if all of this is the right approach.

I currently have a home server with apache installed, it makes use of virtualhosts and aliases to accommodate 3 different domain names and serves 3 very basic websites. I forward 443 and 80 from my router to the machine. For SSL I’m using letsencrypt which takes care of configuring apache.

I’m setting up a Matrix application (synapse-dev) on the same server, which will fulfil requests from a 4th domain name on port 8448 and 443.

I presume I will need to setup a reverse proxy to direct requests from domains 1-3 to the webserver, and requests from domain 4 to the matrix application.

Present

https://preview.redd.it/x9vkbow55r9b1.png?width=2254&format=png&auto=webp&v=enabled&s=bdf0dc4b40571f0e250f81572c4b639d5d88e002

Planned

https://preview.redd.it/zlevegu65r9b1.png?width=2166&format=png&auto=webp&v=enabled&s=5696fae7c7b13071d2100db002de009001c370cc

  1. Does this planned approach make sense?
  2. I presume I can’t use the existing apache webserver as the reverse proxy as well? In which case the reverse proxy will be a separate application on the machine, maybe nginx for ease.
  3. Since I’ve setup SSL with letsencrypt doing its magic on my apache webserver, will SSL be a new headache to deal with the reverse proxy app?

Thanks.