Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I am using Apache 2.2 on 12.04. I have activated ssl connection with a self-signed certificate which works fine, but now I'd like to disable any non-ssl connection.

I used a2dissite default but the server is still accessible on port 80 even after restarting the server.

Please help me on this.

share|improve this question

I finally have it working:

In addition to disabling the default page with: a2dissite default, I edited /etc/apache2/ports.conf and commented the following lines:

NameVirtualHost *:80  
Listen 80
share|improve this answer

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.