Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)
My question is which version of Nginx should I install on my instances, like whether I should go with EPEL, or Amazon's own, or with 2016 Nginx?

1 Answer

0 votes
by (12.4k points)

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 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

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Aug 27, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer

Browse Categories

...