sudo apt-get remove apache2
sudo apt-get remove apache2* libapache2*
sudo netstat -plutn | grep nginx
sudo service nginx start
sudo tail /var/log/nginx/error.log
I hope this doesn't bump this old thread but THANK YOU. I've done this quite a few times and could not figure out why it wasn't working. I thought my version of Nginx had gone mad. Nope, I just forgot how to symlink...
I know I am late to the party, but for those who find this through google:
Try launching the url from a different browser before making those changes listed above ;)
Explanation: If you set a bogus redirect rule in a file with a
permanent switch, most browsers will remember this rule and cache it. For example chrome caches it in some internal file that can not be cleared by removing cookies and site data - you have to actually clear full browser history and all browsing data for the last x hours.