Hello, I have a problem.

On the Ubuntu 16.04 vps and mysql  environment. loaded nop commerce 430, after configuring on apache2 I launched the application, provided installation data with creation of a new mysql database. after clicking install, the installation lasted for a while and then an error appeared at restart
"502 Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server "

I switched to nginx and it's 502 "Bad Getwey"

Anyone know how to solve it?