Skip to content

Instantly share code, notes, and snippets.

@robertkowalski
Created March 6, 2015 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertkowalski/1728bfc6f9eb5b3bcc08 to your computer and use it in GitHub Desktop.
Save robertkowalski/1728bfc6f9eb5b3bcc08 to your computer and use it in GitHub Desktop.
conf is located at:
/opt/local/etc/nginx/nginx.conf
previous conf:
/opt/local/etc/nginx/nginx.conf.bak
revert a nginx deployment:
1. restore the old conf, e.g.:
cp /opt/local/etc/nginx/nginx.conf.bak /opt/local/etc/nginx/nginx.conf
2. restart nginx
svcadm restart nginx
3. take a look if it was restarted:
tail -F $(svcs -L nginx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment