Hi, I'm Dominik Schwind, friend of the internet. Here is /now.

A couple of ways you can follow me around on the internet.

The prefered way would probably be with a feed reader - here is my RSS feed.

If you need more direct access, you can follow me here with Mastodon or similar sites: @dominik@nona.social. You can also follow this blog via @dominik@lostfocus.de.

April 23, 2023

I’m mostly posting this so that someone can contact me and say: Dude, you’re a numpty, that’s all very easy.

A few weeks back I said that I am thinking of writing my own router for Symfony and Andrew pointed out that it might be a good idea to write down why.
I’m currently looking at semi-dynamic sub-domain and domain routing. Basically I want to be able to do what WordPress multisite is able to do: have one big monolithic (yes, yes, I know) application that has the main interface at example.com, user spaces on user.example.com and as a bonus have the application be able to handle domains mapped to these user spaces, too.

To make things a bit harder – all of these domains and subdomains cannot be hardcoded, because the software is supposed to run as different instances in multiple locations.

I think most of it is possible with some configuration magic, but I haven’t quite cracked the nut, how. (To be honest, I didn’t dig in much deeper since my original post, but the requirements are still around.)

Maybe I’m missing something and you have a great and simple solution? You can send me a comment via webmention, copy the URL of this post into you mastodon search and reply there or just send me an email: dschwind@lostfocus.de