Skip to content

Instantly share code, notes, and snippets.

@minhajuddin
Created March 7, 2011 07:27
Show Gist options
  • Save minhajuddin/858186 to your computer and use it in GitHub Desktop.
Save minhajuddin/858186 to your computer and use it in GitHub Desktop.
nginx setup stuff
#create sites-enabled directory to hold config symlinks
sudo mkdir -p /etc/nginx/sites-enabled
#symlink the webapps directory to /var/www/apps
sudo mkdir -p /var/www
sudo ln -ns /home/minhajuddin/webapps /var/www/apps
#symlink an nginx config file to a webapps config file
sudo ln -ns /var/www/apps/ramanujan/config/nginx.conf /etc/nginx/sites-enabled/ramanujan.conf
#hookup /etc/init.d/nginx to auto-start at startup
/usr/sbin/update-rc.d -f nginx defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment