logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2 Open SSL
Author
DexterDave



Joined: 10 May 2011
Posts: 11
Location: South Africa

PostPosted: Tue 10 May '11 15:01    Post subject: Apache 2.2 Open SSL Reply with quote

Hi. How do I install the openssl module on Apache to allow SSL connections?

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Wed 11 May '11 9:52    Post subject: Reply with quote

First you have to have an apache with ssl. e.g. Win32 Binary including OpenSSL 0.9.8o or apache from this page. Than enable the ssl module.
In the apache conf\extra folder there is an example file --> httpd-ssl.conf Also RTFM, but I think the httpd-ssl.conf is easier to understand for starting.

if you still have a question please ask again.
Back to top
DexterDave



Joined: 10 May 2011
Posts: 11
Location: South Africa

PostPosted: Wed 11 May '11 11:48    Post subject: Apache SSL enabling Reply with quote

Hi

Not sure what I am suppose to do with the httpd-ssl.conf file and its contents? On many forums people said I should uncomment the following line in my apache server httpd.conf file: #Include conf/extra/httpd-ssl.conf
to enable SSL in Apache. But when I do that, the server won't restart(the requested operation has failed). How do I enable SSL on Apache?
Back to top
somnang



Joined: 08 Apr 2011
Posts: 61

PostPosted: Wed 11 May '11 12:07    Post subject: Reply with quote

That is correct that you have to un-commented out that part. But comes the challenge that you have to configure the conf file properly for it to not crash. Debugging and testing the obstacles remain a huge task for me when it comes to Apache and it's modules.

Like James Blond put it, you have to configure "httpd-ssl.conf" with Notepad or equivalent text editor. Use "httpd.exe -e debug" to see why it gives you "The requested operation has failed" error.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Wed 11 May '11 22:54    Post subject: Reply with quote

You also have to enbale the SSL module. By removing the # before

LoadModule ssl_module modules/mod_ssl.so

You can check your syntax using the command line (cmd.exe)
go to apache

e.g.
Code:

C:\user\you>cd C:\apache22
C:\Apache22>cd bin
C:\Apache22\bin>httpd -S
Back to top
DexterDave



Joined: 10 May 2011
Posts: 11
Location: South Africa

PostPosted: Thu 12 May '11 14:51    Post subject: Apache SSL Enabling Server crash Reply with quote

Hi

Thanks for the reply. I did run the code: C:\Apache2.2\bin>httpd -S
and it tells me:
httpd: could not reliably determine the server's fully qualified domain name, using 41.240...(my dynamic ip address) for ServerName
VirtualHost configuration:
wildcard NameVirtualhosts and _default_servers:
_default_:443 trapsuutjie.dyndns-home.com <C:/Program Files/Apache Software Foundation/Apache2.2/conf/extra/httpd-ssl.conf:74>
Syntax OK

My server still crashes...

What can I do?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Thu 12 May '11 15:47    Post subject: Reply with quote

please only one topic!

http://www.apachelounge.com/viewtopic.php?t=4002
Back to top


Reply to topic   Topic: Apache 2.2 Open SSL View previous topic :: View next topic
Post new topic   Forum Index -> Apache