The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Modify httpd-ahssl.conf to Prevent non-https Custom Log Entries  (Read 3508 times)

mpfrench

  • Newbie
  • *
  • Offline Offline
  • Posts: 10
Modify httpd-ahssl.conf to Prevent non-https Custom Log Entries
« on: December 17, 2015, 04:55:21 PM »

The way httpd-ahssl.conf is shown now, it logs http as well as https connections.  You should modify it to log only https connections since this is an SSL-only configuration file.  This mod can be accomplished by adding the following to the end of the CustomLog configuration:  expr=%{HTTPS}=="on"
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 847
Re: Modify httpd-ahssl.conf to Prevent non-https Custom Log Entries
« Reply #1 on: December 17, 2015, 09:42:00 PM »

Code: [Select]
CustomLog "${SRVROOT}/logs/ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" env=HTTPS

Simple env=HTTPS should work also, I've made this change in httpd-ahssl.conf for 2.4.19.
Thanks for pointing this out.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13