Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
nginx Installation and Setup

##nginx Installation and Setup


$ sudo apt-get install nginx


$ sudo mkdir -p /var/www/html
$ sudo chown -R $USER:$USER /var/www/html
$ sudo nano /etc/nginx/sites-available/default

Change root in /etc/nginx/sites-available/default to /var/www/html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment