Created
August 3, 2015 07:43
-
-
Save orlissenberg/c319ab4b8b8eb65fad88 to your computer and use it in GitHub Desktop.
Nginx configuration script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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