Maybe my troubleshooting of similar things and my solutions would help?
Using LMS passwords
My Ngnix config