Website URL
https://www.rstrader.net , its a family investing website.
Error Message
The site loads for a while and then gives an 502 Gateway nginx error.
Other Information
I have using Amazon for a while with this files and always have worked pretty great, but when I intergrated the website files here, is giving me this problem.
This problem always occours when the website needs to send an email or send sms.
The website uses PHPMailer and as SMTP uses Yandex SMTP.
I know its not an DNS problem because database, website respondes as we can see at https://rstrader.net/dns.php.
I dont know if its an script problem because it was running perfectly on Amazon AWS. And I have looking at it and I didnt notice any programming problem, and looks like neither VS Code does.
So I dont know what to do more, i got run out of ideas, so I need suggestions.
Ps: Im a brand new Web Developer haha’ go smooth with the answers.