Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
I ran this command: I revoked the certificate of faxzeros.com, and installed new certificate for faxservice.co; and i was hoping to switch the domain on the same machine. however it doesn’t work, it always redirect faxservice.co to faxzeros.com
The DNS A record for faxzeros.com seems to resolve to 0.0.0.0 - if you want your server to handle the redirects from that domain, you’ll have to make sure the DNS for that domain is pointed at your server.
I’m not very familiar with nginx configuration but I believe you’ll want to have a server block for each domain, and configure the one for faxzeros.com to perform the redirect.
Also, don’t revoke the certificate for the domain you want to redirect from! You’ll need a valid certificate to redirect any traffic that reaches the old domain over HTTPS. If you’ve already revoked it, get a new one to replace it.