For various reasons, we follow an internal DNS scheme where the internal test site for 'www.test.com' would be 'p.test-tst.com.local'. I won't go into the details why we ended up with the scheme we're using.
Now, I could add 'p.test-tst.com.local', 'p.test-tst.de.local', 'p.test-tst.co.uk.local' (and so on) to the Nginx configuration file for this specific test site. However, Isn't there a more flexible way of doing this? Could I somehow make Nginx accept 'p.test.tst.com.local', and have it to rewrite that internally to 'www.test.com' so that the website (running on Drupal) would think that the request came for 'www.test.com'?
One of the main reasons why this would be nice is that I then would not have to think about adding more logic to Drupal when it comes to language handling (setting a language for 'com.local').