Bug 21496 - Illegal attempt to re-initialise SSL
Summary: Illegal attempt to re-initialise SSL
Status: CLOSED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ssl (show other bugs)
Version: 2.0-HEAD
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-11 11:37 UTC by Miroslav
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav 2003-07-11 11:37:20 UTC
I am trying to configure SSL on my Apache 2.0.47 and I got this strange (at
least for me) error:

[Fri Jul 11 12:50:38 2003] [error] Illegal attempt to re-initialise SSL for
server (theoretically shouldn't happen!)

SSL module is configured as shared. In fact I have all modules built as shared
and loaded into Apache. I am not sure whether the order of loading modules can
play a role in this error. Here is the list:

LoadModule status_module        modules/mod_status.so
LoadModule info_module          modules/mod_info.so
LoadModule rewrite_module       modules/mod_rewrite.so
LoadModule asis_module          modules/mod_asis.so
LoadModule access_module        modules/mod_access.so
LoadModule userdir_module       modules/mod_userdir.so
LoadModule dir_module           modules/mod_dir.so
LoadModule mime_module          modules/mod_mime.so
LoadModule log_config_module    modules/mod_log_config.so
LoadModule alias_module         modules/mod_alias.so
LoadModule autoindex_module     modules/mod_autoindex.so
LoadModule negotiation_module   modules/mod_negotiation.so
LoadModule setenvif_module      modules/mod_setenvif.so
LoadModule ssl_module           modules/mod_ssl.so
LoadModule auth_module          modules/mod_auth.so
LoadModule deflate_module       modules/mod_deflate.so
LoadModule php4_module          modules/libphp4.so


I am not an expert so I might something misconfigured.

Here is my configuration related to SSL:

<IfModule mod_ssl.c>
    SSLEngine on
    SSLPassPhraseDialog  builtin
    SSLSessionCache         dbm:/var/log/httpd/ssl_scache
    SSLSessionCacheTimeout      300
    SSLMutex  file:/var/log/httpd/ssl_mutex
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    SSLCertificateFile /etc/httpd/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/httpd/ssl.crt/server.key
    SSLCipherSuite ALL
</IfModule>

<VirtualHost 192.168.1.28:443>
    ... 
    <IfModule mod_ssl.c>
        SSLEngine on
        SSLProtocol +ALL
        SSLCipherSuite ALL
        SSLCertificateFile /etc/httpd/ssl.crt/cvs-server.crt
        SSLCertificateKeyFile /etc/httpd/ssl.crt/server.key
    </IfModule>
    ... 
</VirtualHost>

The VirtualHost section is repeted for several virtual hosts and only the
SSLCertificateFile is changed for each VirtualHost.

There are also some VirtualHost items that are not configured for SSL.

There are 12 VirtualHost items and 4 VirtualHost items with configured SSL. They
are 1st, 6th, 11th and 12th. The error occures not in SSL configured VirtualHost
error log file but in 10th VirtualHost error log file. When I inserted new
VirtualHost without SSL configured at 11th position, then the same error occured
in the 11th VirtualHost error log file.

I also tried to make all virtual hosts configured for SSL but I got
'Segmentation fault' error.
Comment 1 Mads Toftum 2003-07-11 12:08:28 UTC
A common misconfiguration error - you shouldn't have SSLEngine on in the global
context. Just remove it from this place:

<IfModule mod_ssl.c>
    SSLEngine on

Please use the Apache HTTP Server Users Mailing List for this type of problem
before reporting it as a bug.
http://httpd.apache.org/lists.html#http-users