Hi,
On Wed, 22 Dec 1999, Kees Vonk 7249 24549 wrote:
> I run a SSL enable intranet site, unfortunately a lot of
> users try to get to the site using the http (instead of
> https) protocol, this results in lots of the following
> messages appearing in the log file:
>
> [Tue Dec 21 16:44:46 1999] [error] mod_ssl: SSL handshake
> failed: HTTP spoken on HTTPS port; trying to send HTML error
> page (OpenSSL library error follows)
> [Tue Dec 21 16:44:46 1999] [error] OpenSSL:
> error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http
> request [Hint: speaking HTTP to HTTPS port!?]
>
> Is there anyway I can trap those situations send the users a
> nice message and stop my error log being poluted? At the
> moment this seems to result in a 404 being returned.
I have a setup here which makes Apache listen on both
ports (80 and 443) and have two separate VirtualHost sections
in my httpd.conf:
<VirtualHost your.ip.address:443>
... Stuff for SSL ..
</VirtualHost>
<VirtualHost your.ip.address:80>
... Stuff for Non-SSL ..
</VirtualHost>
You could e.g. specify different access rules and
DirectoryIndex directives here to deliver different
Index docs in the SSL- and non-SSL-case.
Hope that helps....
____________________________________________________________________
| |
| knipp | Knipp Medien und Kommunikation GmbH
------- Technologiepark
Martin-Schmeisser-Weg 9
D-44227 Dortmund
Dipl.-Inf. Thomas Corte Fon: 0231-9703-0
[EMAIL PROTECTED] Fax: 0231-9703-200