Cannot setup a reverse proxy with Nginx

You should put the site config files in /etc/nginx/sites-enabled.

To solve your problem, check if you have a default site config in /etc/nginx/sites-enabled and delete it. Then, move your myapp.conf file to /etc/nginx/sites-enabled and restart nginx.