Bert Courtin wrote:
> 
> Hi Owen,
> 
> thank you for your reply:-)
> 
> ... but - when sending the output for the ErrorLog to /dev/null I don't
> have an ErrorLog at all, and that's not really what I needed..
> 
> I dont what no ErrorLog at all but just no SSL errors in my ErrorLog (even
> inside the virtual host!). I don't see the point that if I set SSLLogLevel
> to none that this only means that no dedicated SSL logging is done, but
> messages of level ``error'' are still written to the general Apache error
> logfile.
> In my opinion there should be an option "quite" or "disabled" available
> which turns off this behaviour.
> 
> For me meanwhile I now playing around with piped logging using a statemend
> like:
> 
> ErrorLog    "| /usr/bin/fgrep -v 'errno: 131' | /usr/bin/fgrep -v 'SSL
> handshake interrupted by system' >> /var/log/apache_1.3.23/logs/error_log"

I think you're missing a crucial point - you can have SEVERAL
error_logs... You do not need to have just one ErrorLog directive, you
can also have an ErrorLog inside a VH and it will receive log messages
only from that VH. Since you need a separate VH for SSL, it is easy to
put an extra ErrorLog directive inside the SSL VH and it will trap all
the error messages generated by requests to that VH. So your config
would look like:

# Define default server-wide error_log
ErrorLog logs/main_error_log

# Declare SSL VH
<VirtualHost ip-addr:433>
  ...
  # Define special SSL_only error_log
  ErrorLog logs/SSL_error_log
  ...
</VirtualHost>

Then you will get TWO error_logs... and the main_error_log will not have
any SSL errors in it. The thing about /dev/null was just if you wanted
to ignore the logging - obviously you can replace /dev/null with a real
file.

NB - the same is true of TransferLog...

Rgds,

Owen Boyle

PS If you haven't already done so, you might like to sign up for the
Official Apache Users List: http://httpd.apache.org/userslist.html It is
more appropriate for general config issues like this.
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to