Nginx is a web server and a reverse proxy server for HTTP/HTTPS and more. It is part of LEAP stack. Simply type the following yum command to install it on Amazon Linux AMI:
sudo yum search nginx
sudo yum info nginx
sudo yum install nginx
To start nginx server running
sudo service nginx start
Enable service at boot time using the chkconfig command
sudo chkconfig nginx on