Is there an idiomatic way of supporting multi domains?

But is there any limitation in using “yoursubdomain.lvh.me” for localhost? Wouldn’t this allow you to keep exactly the same routing structure?
Then you would only need a plug to read and set the correct domain/subdomain before the controller resolving the controller action