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

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 with its not working. Mozilla gives the error page "Firefox can't establish a connection to the server at". I have window vista machine. And my virtual hosts file is as follows.

my virtual hosts file :

<IfDefine SSL>
       #DocumentRoot "C:/.../My Company/My Sites/"
       #CustomLog logs/ combined
       #ErrorLog logs/

       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"

<IfDefine SSL>
share|improve this question
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

3 Answers 3

or change VirtualHost to VirtualHost

share|improve this 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.

share|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:// , but that's pretty silly. – Brian Feb 25 '11 at 15:32

Having tried to clarify the stuff you've posted above, it appears that you're running the app on port 80. Try and see what happens.

share|improve this answer
hi, thanks for reply. I have tried with 80 port but it not working. – Lokesh Paunikar Feb 24 '11 at 12:01

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.