Kernel_Killer
July 1st, 2004, 20:52
I installed the Apache13-modssl port, and for some reason I can't get the SSL to startup. When I add certain SSL commands in my httpd.conf, I get errors about them mis-spelled or from a module not added. For some reason the port doesn't spit out a mod_ssl.so but does a libssl.so. So I used that, but nothing. Here's what I've added:


<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

<IfDefine HAVE_SSL>
LoadModule ssl_module libexec/apache/libssl.so
</IfDefine>

<IfDefine HAVE_SSL>
AddModule mod_ssl.c
</IfDefine>

<IfDefine SSL>
<Directory /usr/local/www/ns/school:443>
SSLEngine on
SSLCertificateFile /usr/local/etc/apache/conf/newCA/cacrt.crt
SSLCertificateKeyFile /usr/local/etc/apache/conf/newCA
</Directory>



The first thing it errors on is "SSLEngine on". I stopped it and restarted with apachectl startssl. It starts fine when the SSL lines are commented out.

bmw
July 1st, 2004, 22:21
Where you have HAVE_SSL, substitute just SSL. Ie:
<IfDefine SSL>

(That's what's in my FBSD 5.2 box. Incidentally, the port did that for me. Dunno why it didn't just do the right thing for you ...)

Kernel_Killer
July 1st, 2004, 22:31
Right on! Thanx BMW!

Now I get an error about it not being able to be used here, but I can work from there. I'm really not sure why it didn't do it as well. Every doc I saw on it acted like it was all setup and ready to go. And the ones I did see, said to put HAVE_SSL, but they were also talking about apache 1.3.1x. :Eyecrazy: