███████╗██╗ ██╗██╗██████╗ ██████╗ ██╗ ██╗███████╗
██╔════╝██║ ██║██║██╔══██╗╚════██╗██║ ██║╚════██║
███████╗███████║██║██████╔╝ █████╔╝███████║ ██╔╝
╚════██║██╔══██║██║██╔═══╝ ██╔═══╝ ╚════██║ ██╔╝
███████║██║ ██║██║██║ ███████╗ ██║ ██║
╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚══════╝ ╚═╝ ╚═╝
Shipl. Buidl. Repetl.
This is pretty well described in dokku’s docs but I’m putting it here mainly as a note for myself as I seem to always have to relearn this every once in 5 years when I setup dokku on a machine.
By default, Dokku will route any received request with an unknown HOST header value to the lexicographically first site in the nginx config stack.
This means if you have the following apps:
The lexicographically order will be:
If you want youniverse app to be your default app for the global domain it’s easiest to just change the app name to 00-default so it becomes the first lexicographically site in the nginx config stack and first to be served for your global domain.
\0