natjohan's blog

Posted lun. 15 avril 2013

Tip of the week 17

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 to :

Listen (if you want https)

Then, just restart apache2 :

natjohan# service apache2 restart
natjohan# /etc/init.d/apache2 restart
Category: Linux
Tags: tool network apache2