Skip to content

Instantly share code, notes, and snippets.

@phirework
Created January 13, 2014 22:40
Show Gist options
  • Save phirework/8409538 to your computer and use it in GitHub Desktop.
Save phirework/8409538 to your computer and use it in GitHub Desktop.
nginx configuration for virtual sites
# If you installed nginx with homebrew, go to /usr/local/etc/nginx, and create these directories:
mkdir sites-available
mkdir sites-enabled
# Add the following to nginx.conf before the final }
include /usr/local/etc/nginx/sites-enabled/*;
# Put your virtual host config files in ./sites-available and symlink as necessary
ln -s /sites-available/custom.conf /sites-enabled/custom.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment