Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this question
1  
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

1 Answer 1

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

 
discard

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.