Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a server running Ubuntu, how would I make it so whenever a user tries to access a web page it looks like the whole server is down? It's running Apache 2.


share|improve this question
Umm ... why do you want to do this? If you block all users from accessing the web server, then why run it at all? – Zypher Dec 29 '10 at 3:29
Well it's a VPS and I wanted to see how to make it so the web server portion is basically off. I'm new to Ubuntu. – walri Dec 29 '10 at 4:03
up vote 2 down vote accepted

You can do this using ufw with the following command.

sudo ufw deny Apache Full

Or you could just turn off apache

sudo /etc/init.d/apache2 stop

share|improve this answer
The former of those will only work if ufw is enabled. And the more Ubuntu-ish way to do the latter is: service apache2 stop – Mike Scott Dec 29 '10 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.