Install and set up an nginx reverse proxy on an Amazon Linux 2 ec2 instance.
nginx links:
- https://www.nginx.com/blog/setting-up-nginx/
- https://www.nginx.com/blog/mitigating-ddos-attacks-with-nginx-and-nginx-plus/
- http://nginx.org/en/docs/http/configuring_https_servers.html
Code
sudo amazon-linux-extras install nginx1 -y
sudo systemctl enable nginx
sudo systemctl start nginx
sudo vim /etc/nginx/nginx.conf
server {
location / {
proxy_pass http://localhost:8080;
}
}