Skip to content

Instantly share code, notes, and snippets.

@xserveraws
xserveraws / nginx.conf
Created July 21, 2017 19:49 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
# This configuration file is provided on an "as is" basis,
# with no warranties or representations, and any use of it
# is at the user's own risk.
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
Resource:
https://support.rackspace.com/how-to/install-epel-and-additional-repositories-on-centos-and-red-hat/
#Step 1 - Add the IUS Repo
wget https://centos7.iuscommunity.org/ius-release.rpm
#Add it to YUM, U=upgrade, v=verbose, h=hash
sudo rpm -Uvh ius-release*.rpm
#Step 2 - Add the yum plugin replace package