You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Menashè Eliezer <me...@ogs.trieste.it> on 2013/09/23 17:07:41 UTC

[users@httpd] http 403 error for any file in the directory of awstats.pl

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
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] http 403 error for any file in the directory of awstats.pl

Posted by Menashè Eliezer <me...@ogs.trieste.it>.
Thank you Yehuda, but these changes have eliminated the error.

Thanks,
Menashè


On 09/23/2013 05:43 PM, Yehuda Katz wrote:
> 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 
> <meliezer@ogs.trieste.it <ma...@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 <http://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
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>
>

Re: [users@httpd] http 403 error for any file in the directory of awstats.pl

Posted by Yehuda Katz <ye...@ymkatz.net>.
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
<me...@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<us...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
>
>