Back
I would recommend you to use Amazon's own repo, and if you like a later version then consider EPEL. Ans for config, you can explicitly supply the configuration required by the server.
You can add the below script while creating an instance to get your configuration,
#!/bin/bash# Install Nginxamazon-linux-extras install nginx1.12# Back up existing configmv /etc/nginx /etc/nginx-backup# Download the configuration from S3aws s3 cp s3://{my_bucket}/nginxconfig.io-example.com.zip /tmp# Install new configurationunzip /tmp/nginxconfig.io-example.com.zip -d /etc/nginx
#!/bin/bash
# Install Nginx
amazon-linux-extras install nginx1.12
# Back up existing config
mv /etc/nginx /etc/nginx-backup
# Download the configuration from S3
aws s3 cp s3://{my_bucket}/nginxconfig.io-example.com.zip /tmp
# Install new configuration
unzip /tmp/nginxconfig.io-example.com.zip -d /etc/nginx
Interested in learning AWS? Check out: AWS Online training
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users