Author |
|
DexterDave
Joined: 10 May 2011 Posts: 11 Location: South Africa
|
Posted: Tue 10 May '11 15:01 Post subject: Apache 2.2 Open SSL |
|
|
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
|
Posted: Wed 11 May '11 9:52 Post subject: |
|
|
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
|
Posted: Wed 11 May '11 11:48 Post subject: Apache SSL enabling |
|
|
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
|
Posted: Wed 11 May '11 12:07 Post subject: |
|
|
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
|
Posted: Wed 11 May '11 22:54 Post subject: |
|
|
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
|
Posted: Thu 12 May '11 14:51 Post subject: Apache SSL Enabling Server crash |
|
|
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
|
|
Back to top |
|