Jump to content

Getting SSL working with Apache 2 on Windows XP


shortcircuit

Recommended Posts

Hi all,

 

I'm having some trouble getting SSL working with Apache 2.0.63 on Windows XP. I used this tutorial: http://www.thompsonbd.com/tutorials/apachessl.php to get me going. It seems very good, and everything mentioned in the tutorial worked without any errors. I'll outline my problem:

 

1. I'm building a test Apache web server on Windows XP- I'm not interested in hosting a website, I just want to do everything on the local machine. For that reason, in the tutorial above, where it mentions "www.mydomain.com" I use my local machine name.

 

2. Apache is running fine: when I navigate to http://localhost I get the standard page, I can also access items in the htdocs directory, etc. I want to use SSL to access the directory htdocs\ssl, so in my ssl conf I have:

 

DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/ssl"

 

Everything else I have done as per the tutorial. I can access http://localhost/ssl whereas I expected that this should not work. I was expecting https://localhost/ssl should work. I am getting no errors in the error logs. I'll attach my httpd.conf and ssl.conf (these files will have a .txt extension on them so that this site will accept them as attachments)

 

The following command is successful

 

telnet <mycomputername> 80

 

whereas this is not:

 

telnet <mycomputername> 443

 

So it seems that Apache isn't able to "establish" (not sure if that's the correct term here) itself on port 443.

 

Any help with this would be greatly appreciated!

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

I don't feel like reading through your config files...

 

 

It doesn't sound like you have a Listen statement for 443.

 

 

Also, it seems that your folder settings are wrong for the /ssl thing.

 

 

If your folder is under the docroot, of course its accessible.

 

 

Use a vhost and make a different docroot for ssl.

 

Or, use a rewrite to enforce ssl on some folders.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.