That configuration is for Apache 2.2.
Apache 2.4 has changed several things:
https://httpd.apache.org/docs/2.4/upgrading.html#run-time

In a nutshell, you need to find everywhere where it says:

> Order allow,deny
> Allow from all


and replace it with

> Require all granted



On Mon, Sep 23, 2013 at 11:07 AM, Menashè Eliezer
<melie...@ogs.trieste.it>wrote:

> Hello,
> I'm posting this message after an extensive research.
> I have Apache/2.4.6 (Debian).
> I get HTTP 403 for /awstats/awstats.pl , but also to /awstats/test.html
> Apache error log shows that the alias points to the right folder:
> AH01630: client denied by server configuration: /usr/local/awstats/wwwroot/
> **cgi-bin/test.html
>
> Permissions:
> drwxrwSr-- 2 www-data www-data 4096 Sep 23 13:04
> /usr/local/awstats/wwwroot/**cgi-bin/
> drwxr-s--- 6 www-data www-data 4096 Aug 27 16:16
> /usr/local/awstats/wwwroot/
>
> awstats.conf:
> <Directory /var/lib/awstats>
>     Options None
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
> <Directory /usr/share/awstats/icon>
>     Options None
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
> <Directory /usr/share/java/awstats>
>     Options FollowSymLinks
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
> Alias /awstats-icon/ /usr/share/awstats/icon/
> Alias /awstatsclasses/ /usr/share/java/awstats/
> Alias /awstatscss "/usr/local/awstats/wwwroot/**css/"
>
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>
> <Directory "/usr/local/awstats/wwwroot">
> Options FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> <Directory /usr/local/awstats/wwwroot/**cgi-bin>
>     Order allow,deny
>     Allow from all
>     AddHandler cgi-script .cgi .pl
>     Options Indexes FollowSymLinks ExecCGI
>     Require all granted
> </Directory>
>
>
> I imagine that the solution is simple, but I don't see it.
> Thanks in advance for any idea.
>
> --
> Thanks,
> Menashè
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@httpd.**apache.org<users-unsubscr...@httpd.apache.org>
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Reply via email to