Website shows 502 bad gateway

hello the website is showing 502 bad gateway , it is hosted on my own server . the app is serving on port 80 . when I open server and run (curl localhost), I got the login page , but the website is not serving it . any ideas ?

Opera Instantané