Skip to content

Instantly share code, notes, and snippets.

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

##nginx Installation and Setup

Ubuntu/Debian

$ sudo apt-get install nginx

Configuration

$ 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