Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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've set up SSL for my domain and it works from Apache perspective.

The problem is that accessing my domain over HTTPS sometimes results in timeouts. When it doesn't work, it takes some time to access my website over HTTP but it never times out.

Why does this happen for HTTPS and is there a way to control timeout time for HTTPS?

My configuration: Apache 2.2.11 on CentOS 5

NameVirtualHost *:443
<VirtualHost *:443>
    SuexecUserGroup foo
    DocumentRoot /home/mydomain/www/

    SSLEngine on
    SSLProtocol -all +TLSv1 +SSLv3
    SSLCertificateFile /path/
    SSLCertificateKeyFile /path/
    SSLVerifyClient none
    SSLProxyVerify none
    SSLVerifyDepth 0
    SSLProxyVerifyDepth 0
    SSLProxyEngine off
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    <Directory "/home/mydomain/www">
            AllowOverride all
            Options +FollowSymLinks +ExecCGI -Indexes
            AddHandler php5-fastcgi .php
            Action php5-fastcgi /cgi-bin/a.fcgi
            Order allow,deny
            Allow from all
    <Directory "/var/suexec/">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all


It's a self-signed certificate.
When visiting my domain works, it results in a SSL warning saying that the certificate is not trusted but accepting it lets me see the website over HTTPS.

share|improve this question
up vote 11 down vote accepted

I found the cause of this problem.

Port 443 was closed in my firewall configuration. It worked sometimes because my IP was added to firewall as a safe one. That's why it did not work for other IPs.

All I had to do is open port 443 in firewall and it works just fine :)

share|improve this answer
sudo ufw allow https – Ezequiel Moreno Nov 28 '15 at 7:24
OMG I just spent 2 hours trying to troubleshoot the same. facepalm – wogsland Feb 27 at 16:22

Try checking the SSL installation at It might be able to find a problem.

share|improve this answer
Test resulted in: resolves to Server Type: mydomain HTTP Server No SSL certificates were found on What I forgot to mention is that I have a self generated certificate. – 6bytes Nov 30 '09 at 17:04

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.