Skip to content

Instantly share code, notes, and snippets.

@syammohanmp
Created September 18, 2018 07:17
Show Gist options
  • Save syammohanmp/35b266fef791eb6b28c2340bdcf566c1 to your computer and use it in GitHub Desktop.
Save syammohanmp/35b266fef791eb6b28c2340bdcf566c1 to your computer and use it in GitHub Desktop.
# remove nginx conf files
apt-get purge nginx
# reinstall
apt-get install nginx
# make sure the default site is enabled
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
# start nginx
sudo /etc/init.d/nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment