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

I am setting up an SSL certificate for the first time on an Ubuntu server. I have purchased a dedicated IP address and have purchased the certificate under the subdomain of

Port 443 is open and being listened to by apache and using an online server to check the domain shows that the certificate appears to be setup and working fine. Here is my config for the domain:

<VirtualHost *:80>

<VirtualHost 109.228.x.x:443>

    DocumentRoot /var/www/

    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/
    SSLCertificateKeyFile /etc/apache2/ssl/
    SSLCertificateChainFile /etc/apache2/ssl/Intermediate.crt

    <Directory "/var/www/">
            Options Indexes FollowSymLinks Includes ExecCGI
            AllowOverride All
            Order allow,deny
            allow from all

    ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined


However when I go to it redirects to displaying the default "It works!" page since it isn't configured. I cannot see anything in any error logs and I am not sure where to go from here.

Thanks for any help.

share|improve this question
Did you disable original httpd.conf? – Danila Ladner Apr 26 '13 at 12:04
the httpd.conf file on the server is blank – Thomas Apr 26 '13 at 12:40
What is the output of apache2ctl -S ? And what do you see in your access logs? – Krist van Besien Apr 26 '13 at 15:17 VirtualHost configuration: 109.228.x.x:443 (/etc/apache2/sites-enabled/example:34) wildcard NameVirtualHosts and default servers: *:80 is a NameVirtualHost default server (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost (/etc/apache2/sites-enabled/example2:1) port 80 namevhost (/etc/apache2/sites-enabled/example3:1) Syntax OK – Thomas Apr 26 '13 at 15:32
also access.log entry: 82.69.x.x - - [26/Apr/2013:16:38:14 +0100] "GET / HTTP/1.1" 302 693 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31" – Thomas Apr 26 '13 at 15:44

Your Answer


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

Browse other questions tagged or ask your own question.