[Solved] Migrated to new VPS .. problem with nginx

So I set up MiaB on a new VPS - went smoothly for the most part but after I restored the backups I began to have problems.

When attempting to go to the admin page after rerunning sudo mailinabox I got the infamous “Something went wrong” on the status page but was able to reach the users page and saw all the users/domains/etc. I followed the advice in another post to reboot after running sudo mailinabox, so I ran it again and then rebooted.

Now … nginX will not start!

accounting@box:~$ sudo nginx -t
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/home/user-data/ssl/ssl_private_key.pem") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
nginx: configuration file /etc/nginx/nginx.conf test failed
accounting@box:~$

Can someone offer some advice?

1 Like

Found the solution in this thread:

1 Like