Skip to content

Instantly share code, notes, and snippets.

@orlissenberg
Created August 3, 2015 07:43
Show Gist options
  • Save orlissenberg/c319ab4b8b8eb65fad88 to your computer and use it in GitHub Desktop.
Save orlissenberg/c319ab4b8b8eb65fad88 to your computer and use it in GitHub Desktop.
Nginx configuration script.
#!/usr/bin/env bash
sudo rm /etc/nginx/sites-enabled/example.conf
sudo cp /vagrant/projects/a-project/nginx/example.conf /etc/nginx/sites-available/example.conf
sudo ln -s /etc/nginx/sites-available/example.conf /etc/nginx/sites-enabled/example.conf
# http://wiki.nginx.org/CommandLine
# /usr/bin/nginx -t
sudo service php5-fpm restart
sudo service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment