client denied c:/wamp/www/favicon
Posted by: baccochr (---.abo.bbox.fr)
Date: December 27, 2018 11:19AM

Hello
How can I solve (and remove) the following error in apache_error_log :

access_compat_error - AH01797 : client denied by server configuration c:/wamp/www/favicon.ico

(I'm using Wamp 2.4/ Apache 2.4.4 Win 32 on a XP SP3 machine)

I created an alias. So I never access to wamp main 'www' directory, but only to my alias [<my] ip>/<myalias>/

So why apache is trying to get access to main 'www/favicon.ico' ?

And I don't want to give external access to that main Wamp 'www' since I don't need it ?

And I was not able to find a directive to ask Apache to not search this favicon.ico or to not log this error that increases uselessly the apache error log file.

Thanks



Edited 1 time(s). Last edit at 12/27/2018 11:24AM by baccochr.

Re: client denied c:/wamp/www/favicon
Posted by: Otomatic (Moderator)
Date: December 27, 2018 04:18PM

Hi,

Do not use an alias, which necessarily goes through "localhost". For all your local sites, use VirtualHost, as with all hosting providers.
See The need for Virtual Host

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Sorry, only registered users may post in this forum.