Skip to content

Instantly share code, notes, and snippets.

@saltandvinegarcrisps
Last active May 25, 2016 10:36
Show Gist options
  • Save saltandvinegarcrisps/ce7ee05f67db0e76730d4c775432ef45 to your computer and use it in GitHub Desktop.
Save saltandvinegarcrisps/ce7ee05f67db0e76730d4c775432ef45 to your computer and use it in GitHub Desktop.
nginx setup
mv /etc/nginx /etc/nginx.old
mkdir /etc/nginx
mkdir /etc/nginx/ssl
mkdir /etc/nginx/snippets
mkdir /etc/nginx/sites-available
mkdir /etc/nginx/sites-enabled
wget http://snipet.co.uk/1q/raw -O /etc/nginx/nginx.conf
wget http://snipet.co.uk/LtP/raw -O /etc/nginx/mime.types
wget http://snipet.co.uk/hLr/raw -O /etc/nginx/snippets/php.conf
wget http://snipet.co.uk/w6e/raw -O /etc/nginx/snippets/ssl.conf
wget http://snipet.co.uk/qQ/raw -O /etc/nginx/fastcgi_params
wget http://snipet.co.uk/31/raw -O /etc/nginx/sites-available/default.conf
ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment