Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just need a bit of help with https config for nginx using a wildcard domain name across 2 servers.

we have the wildcard domain lets call it *.mydomain.com

We currently have a server shop.mydomain.com and that's running with the wild card cert just fine. What we want to do now is set up a community site called club.mydomain.com and run that from a new machine.

Do I just copy the existing .crt and .key files from the existing server and copy them to the new machine and adjust my domain name accordingly?

possible examble ....

server {
listen        443;
    server_name  club.mydomain.com 

    ssl             on;
    ssl_certificate         /etc/ssl/certs/mydomain.com.crt;
    ssl_certificate_key     /etc/ssl/private/mydomain.com.key;


Or is there some sort of ssl key related stuff I have to do ?



share|improve this question

1 Answer 1

If you have a wildcard SSL certificate, then that's all you have to do. They are locked to domain names, not to specific servers or IP addresses.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.