I've installed Nginx to my ubuntu machine. And by default, as I understood it should listen on port 80 and should be available by localhost in the browser address bar, but I mentioned that this port already occupied by Apache.
It returns me this page. My question is, how can I change this behavior and make Nginx listen on the localhost? What I've tried is to delete Apache, was thinking it will help, but it didn't.
I've used this command :
sudo apt-get purge apache2
What I've got in response is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'apache2' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.