Hostregexp for All subdomains

Hi, there
I'd like to redirect all requested from * to some app.
For example: User go to URL or, but an application should works on all subdomains *

What I should to write?

Hello @knock,

Based on the Routers section of our documentation: (, you can use:


But note that regex only works with lowercase letters.

You can use: {subhost:[a-zA-Z0-9-]+} to select capitals and numbers and dashes in your host.

I would avoid matching a period, as you may find issues down the road when you enable TLS (as a certificate for * will match but not `


Thank you Daniel!
It works!

1 Like