• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Plesk 12.5.4 Centos7 http auth log spam

exospec

New Pleskian
Hi,

I have a strange issue on this new set up, I expect it is something simple, hopefully someone can help.

I have 'secured' httpdocs of a vhost with an htaccess file using something like this:

####
AuthUserFile /var/www/vhosts/exampledomain.com/.htpasswd
AuthGroupFile /dev/null
AuthName Authentication
AuthType Basic

require user exampleuser
####

This correctly prompts a user to enter username and password when first landing on exampledomain.com

It works correctly and the user is able to navigate the site as expected. However.. in the error_log, for every resource the user accesses, there are lots and lots of lines like:

[Wed Oct 12 13:54:58.690690 2016] [authz_user:error] [pid 19224:tid 140260008752896] [client xxx.xxx.xxx.xxx:38644] AH01663: access to xxxxxxxxxx failed, reason: user 'exampleuser' does not meet 'require'ments for user to be allowed access, referer: xxxxxx

I can't understand why I am getting these messages?

Thanks!
 
Could you please clarify, why you do not use default Plesk feature for Password Protected Directories for this purpose?
 
Thanks Igor,

When I use the Password Protected Directories feature, it does not apply the protection recursively. For example I have added protection to httpdocs, but it is not behaving recursively. It only pops up for authentication if I go directly to: domain.com/httpdocs

Any ideas? Thanks
 
Back
Top