# Update the system and install the EPEL repositorysudo yum update -y
sudo yum install epel-release -y
# Install Nginx, Git, and Certbotsudo yum install nginx git certbot certbot-nginx -y
# Start Nginx and set it to start on bootsudo systemctl start nginx
sudo systemctl enable nginx
# Create directoriessudo mkdir -p /var/www/hangops
sudo chown -R root:root /var/www/hangops
sudo chmod -R 755 /var/www/hangops
Configuring Nginx and HTTPS
1
2
3
4
5
6
sudo vi /etc/nginx/conf.d/hangops.top.conf
# Check if the syntax is correctsudo nginx -t
# If it shows successful, then restartsudo systemctl reload nginx