Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_ssl install problem

Status
Not open for further replies.

Dronealone

IS-IT--Management
Mar 13, 2002
64
GB
Hi,

I've followed the article on Devshed on installing Mod_SSL with Apache on Linux.

The install all appears to go fine. I generate keys etc, no problems.

I stop Apache and then restart with apachectl sslstart. And it starts fine. It can serve up http:// pages fine. However trying to access https:// pages the browser just hangs.

I understand that running virtual hosts you have to specify whether each host is running SSL. I've used the format below:

<VirtualHost xx.xx.xx.xx>
ServerName domain.co.uk
ServerAdmin sysop@domain.co.uk
DocumentRoot /path
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
</VirtualHost>

However Apache will not allow this and tells me that SSLEngine is not understood. I do an httpd -l and cannot see mod_ssl.

How can this be, after it has installed, and I can see the process:

/usr/local/apache/bin/httpd -DSSL

Any ideas much appreciated, doing my head in on this one!

Thanks.
 
Try adding port 443 to your
VirtualHost tag when after you get httpd to list mod_ssl as a compiled in module. I understand there are problems with the dynamic shared object for ssl.

When you build mod_ssl be sure and configure with apache
./configure --with-apache=root/of/apache/install/tree
Whey you build apache be sure and configure with ssl
./configure --enable-module=ssl ...
<VirtualHost xx.xx.xx.xx:443>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top