Let's Encrypt domain A loading certificate of domain B

As mentioned here, I should have added server_name directive for ssl block.