I am trying to remove Apache2 and replace with NginX. I purged Apache2 and if I try again, it says "Package 'apache2' is not installed, so not removed". However, when I go to the localhost page, I'm still get the default Apache page. I am not sure where to go now.
Change directory to /var/www/
cd /var/www/ ls -la
you should see these files
index.html is that defaul page of apache, remove it, then you will see nginx defult home page
open localhost again (ctrl+f5)