website not available over SSL, 404 not found

Discussion in 'Server Operation' started by maxproxy, Jan 4, 2012.

  1. maxproxy

    maxproxy New Member

    Hello :D I am new here.

    I have a Linux Debian 6.0 LAMP server with Apache 2 and root access. I have a .net domain from namecheap dot com with a positiveSSL SSL certificate from comodo.

    To install it I had to generate a key + csr file, then send them the csr file to receive a certificate, unfortunately it took 11(!) tries and one day for them to send me a certificate that has the same md5 hash like the .key file.

    However I installed it by putting the files in the /etc/ssl/certs folder and by adding the paths of those files to the /etc/apache2/sites-enabled/default-ssl file. Then I restarted apache with the command /etc/init.d/apache2 restart .

    Now browsing to my domain using https:// works, but I only get a 404 not found error, instead of the standard apache HTML file that shows up when I use http.
    Why is that? Any ideas? The customer support from comodo couldn't help me anymore :(
    The certificate is working correctly and validated, port 443 is open (or else I wouldn't be able to reach the server using https anyway) and I set the rights for the certificates to be executed by the owner (root), which did not change anything.
    If you require any further information, just ask :)

    Have a great day :D

    //EDIT: -----SOLVED!-----
    What I had to do was add was the line "DocumentRoot /var/www/" in the configuration. So simple, yet the knowledgebase from comodo does not mention it, although I am 100% sure that everyone has to add this line, not just me.
    I was given helpful links in another forum so I'd like to share the one that helped me with people who might have the same problem and find this:
    Last edited: Jan 4, 2012

Share This Page