You need to get a certificate that matches your URL exactly.
SSL works by matching what URL the user is requesting to the URL on the certificate.
So in your case
www.domain.com is different to server.domain.com.
Your options would be to request a new certificate for
www.domain.com. Or, setup your DNS so you can access server.domain.com/remote.