Install nginx on AWS EC2 instance
AWS provides a curated nginx package to install on EC2 linux machines. So install nginx on an EC2 instance use this command:
sudo amazon-linux-extras install nginx1.12
When nginx is installed, you can edit nginx.conf
to configure the proxy:
sudo nano /etc/nginx/nginx.conf
See more on setting up nginx in this article on setting a Node app on AWS EC2 behind an nginx proxy