███████╗██╗  ██╗██╗██████╗ ██████╗ ██╗  ██╗███████╗
██╔════╝██║  ██║██║██╔══██╗╚════██╗██║  ██║╚════██║
███████╗███████║██║██████╔╝ █████╔╝███████║    ██╔╝
╚════██║██╔══██║██║██╔═══╝ ██╔═══╝ ╚════██║   ██╔╝ 
███████║██║  ██║██║██║     ███████╗     ██║   ██║  
╚══════╝╚═╝  ╚═╝╚═╝╚═╝     ╚══════╝     ╚═╝   ╚═╝  
            

Shipl. Buidl. Repetl.

How To: Setting a default app for Dokku global domain

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:

  1. 123test
  2. amigdala
  3. youniverse
  4. zoltan

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