Serve your apache website only on localhost
When you want to test something with apache2, it's useful to serve it only on localhost to see what happens and make sure everything goes well. So, you just have to edit your /etc/apache2/ports.conf and set the Listen directive ...