To start off, i'll explain my situation a little bit:
I have multiple domains, that i want to run with one magento 2.1.7 installation.
examples for the issues are domain1.com and domain2.com
domain2.com redirects to domain1.com, but www.domain2.com does not.
note: i do not want them to redirect!
When i go to domain2.com, it uses the domain1.com template. While this template looks nice and all, it is not what i want.
Help would be appreciated a lot.
1) Maybe you'll need to add an alias to your vhsot definition to accept domain2.com and www.domain2.com for that vhost. If ServerName isn't found the response of the server it will be the default vhost (by name, domain1.com will be before domain2.com).
2) You can change the design configuration at Content -> Design -> Configuration. There you'll be able to choose the right theme for each store.
Try this solution, I think it gives you a resolution.