You had the same problem as this thread. When a request comes in for a name that doesn't match any server_name directives a block is chosen by default. At first this would have been test.domain.com as it was the only one with SSL enabled, then when domain.com was created it became the default.
1 Like