title: Http-status-code 401 Errors not logged in Apache error logs
body: <p>I am setting up Fail2ban on our server. The apache.auth jail fails as unauthorized requests are not being logged in Apache logs. I have changed the log levels, set separate access and error logs for SSL, but to no avail. Only Http 403 are getting logged in error logs. what should I do so that I can see more error details like 401 in logs. </p>
  
  <p>Tried changing the log levels and 
  configured separate log files for ssl and normal apache logs</p>
  
  <p>default-ssl in Sites- (Enabled, Available)</p>
  
  <pre><code>    ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
  
      # Possible values include: debug, info, notice, warn, error, crit,
      # alert, emerg.
      LogLevel error
  
      CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  
      #Alias /doc/ "/usr/share/doc/"
      #&lt;Directory "/usr/share/doc/"&gt;
      #       Options Indexes MultiViews FollowSymLinks
      #       AllowOverride None
      #       Order deny,allow
      #       Deny from all
      #       Allow from 127.0.0.0/255.0.0.0 ::1/128
      #&lt;/Directory&gt;
  </code></pre>
  
  <p>When I try to reach a forbidden page. Other than this, no errors logged in error log.</p>
  
  <pre><code>[Thu Sep 12 15:00:53.276750 2019] [core:crit] [pid 50926] (13)Permission denied: [client 172.16.0.44:57549] AH00529: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/' is executable
  [Thu Sep 12 15:02:17.713433 2019] [core:crit] [pid 50924] (13)Permission denied: [client 172.16.0.44:57569] AH00529: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/' is executable
  </code></pre>