Re: SSL support for a VirtualHost on a port other than 443

Mads Toftum <[email protected]>
Newsgroups gmane.comp.apache.mod-ssl.user
Message-ID <20050816204115.GF22267@cr>
On Tue, Aug 16, 2005 at 11:16:36AM -0700, Andrew Musselman wrote:
> Listen 81
> <VirtualHost *:81>
>      ServerAdmin [email protected] 
>      DocumentRoot /usr/local/www/printers
>      ServerName pc74965.cts.cwu.edu
>      DirectoryIndex index.html index.php
>      ErrorLog /var/log/printers-error_log
>      CustomLog /var/log/printers-error_log combined
> </VirtualHost>
> 
> Do I need to add any ssl-specific directives in there?
> 
Yes. SSLEngine on is the first thing to add - you also need to point to
the server cert and key.

> SSL_connect:SSLv2/v3 write client hello A
> read from 08097700 [080B5000] (7 bytes => 7 (0x7))
> 0000 - 3c 21 44 4f 43 54 59                              <!DOCTY

This matches the config above - SSL isn't turned on on port 81 - you
should never see <!DOCTY in plain as part of an ssl session.

[SNIP lots of useless comments]
no need to paste comments verbatim from the config file.

vh

Mads Toftum
-- 
`Darn it, who spiked my coffee with water?!' - lwall

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [email protected]
Automated List Manager                            [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.