I have create a self signed SSL Certificate for testing purpose and I have configure the generated certificate with my virtual hosts file. But when I tried to access my domainname.com with https://mydomainname.com its not working. Mozilla gives the error page "Firefox can't establish a connection to the server at mydomainname.com.". I have window vista machine. And my virtual hosts file is as follows.

Virtual hosts file :

<IfDefine SSL>
    <VirtualHost mydmainnamw.com:80>


    SSLEngine on
    SSLCertificateFile C:/Program Files (x86)/ApacheSoftwareFoundation/conf/ssl.crt/server.crt 
    SSLCertificateKeyFile C:/Program Files (x86)/ApacheSoftwareFoundation/conf/ssl.key/server.key

    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    CustomLog logs/ssl_request_log \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

    </VirtualHost>
</IfDefine>

Is anything wrong with my virtual host file? please reply me as soon as possible. thank you.

link|improve this question

17% accept rate
100% Exact duplicate of mydomainname.com not working with https. – Lekensteyn Feb 25 '11 at 14:14
do not cross post, please; if a Question is not appropriate for the site you post it on we will move it to the correct site. – Chris S Feb 25 '11 at 15:18
feedback

migrated from superuser.com Feb 25 '11 at 13:24

This question came from our site for computer enthusiasts and power users.

1 Answer

Yes, you're trying to run HHTPS over port 80 (per the virtual hosts definition) which isn't going to work very well when the rest of the world uses port 443.

link|improve this answer
Yeah, you'll want another VirtualHost on something besides port 80. When you type "https" the browser is defaulting to port 443, and doesn't find anything. It may actually work if you typed https:// blahblah.com:80 , but that's pretty silly. – Brian Feb 25 '11 at 15:32
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.