I created a SSL certificate for my site and tried to configure it with Apache2, but it's not working. I modified default-ssl as follows:

<VirtualHost www.mysitename.com:443>
  SSLEngine on
  SSLCertificateFile    /etc/apache2/ssl/en.crt
  SSLCertificateKeyFile /etc/apache2/ssl/en.key
  ServerName www.mysitename.com
  DocumentRoot /var/www-ssl/

  <Directory /var/www-ssl/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
  </Directory>
</VirtualHost>

Now when I restart Apache and try to access 'https://www.mysitename.com', it's showing an error

"The connection has timed out.The server at www.mysitename.com is taking too long to respond."

And in the error.log it is showing

"[error] [client 127.0.0.1] Invalid method in request \x16\x03\x01".

How to solve this?

link|improve this question
1  
How did you start apache? Did you do a ../apachectl start, or an ../apachectl startssl. You need to latter to start apache with ssl switched on. – mikey Oct 11 '11 at 13:53
feedback

migrated from stackoverflow.com Oct 14 '11 at 2:35

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown