[linux] Re: awstats cgi-bin forbidden

Der cl3m0t op gmail.com
Ma Aug 11 18:15:04 CEST 2014


On 11-08-14 12:54, Hans Paijmans wrote:

>    client denied by server configuration: /usr/lib/cgi-bin/awstats.pl
>
> Er is dus ergens een permissieprobleem. Geen flauw idee waar.
>
>
>
> <VirtualHost *:80>
>           ServerAdmin webmaster op localhost
>           ServerName  paijmans.net
>
>
>           DocumentRoot /var/www/Paijmans.net
>           <Directory />
>                   Options FollowSymLinks
>                   AllowOverride None
>           </Directory>
>           <Directory /var/www/>
>                   Options Indexes FollowSymLinks MultiViews
>                   AllowOverride None
>                   Order allow,deny
>                   allow from all
>           </Directory>
>
>           ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>           <Directory "/usr/lib/cgi-bin">
>                   AllowOverride None
>                   Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>                   Order allow,deny
>                   allow from all
>           </Directory>
>
>           ErrorLog /var/log/apache2/paijmans.net.err.log
>
>           # Possible values include: debug, info, notice, warn, error, crit,
>           # alert, emerg.
>           LogLevel warn
>
>           CustomLog /var/log/apache2/paijmans.net.log combined
>
>       Alias /doc/ "/usr/share/doc/"
>       <Directory "/usr/share/doc/">
>           Options Indexes MultiViews FollowSymLinks
>           AllowOverride None
>           Order deny,allow
>           Deny from all
>           Allow from 127.0.0.0/255.0.0.0 ::1/128
>       </Directory>
>
> # toegevoegd  n.a.v. de awstats instructies
>
>     Alias /awstatsclasses "/usr/share/awstats/lib/"
>     Alias /awstats-icon "/usr/share/awstats/icon/"
>     Alias /awstatscss "/usr/share/doc/awstats/examples/css"
>     ScriptAlias /awstats/ /usr/lib/cgi-bin/
>     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>
> </VirtualHost>
>

Paai, voor Apache 2.4 moet je waar staat:

Order allow,deny
allow from all

vervangen met:
Require all granted


waar staat:
Order allow,deny
deny from all

vervangen met:
Require all denied

En:
Order allow,deny
deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128

vervangen met:
Require ip 127.0.0.0/255.0.0.0 ::1/128



Groet,
Derry




More information about the Linux mailing list