SimpleSAMLphp Apache client denied by server configuration

jawatnl

New member
Joined
Jul 5, 2011
Messages
3
Goodmorning,

On my test VPS I installed SimpleSAMLphp in /var/simplesamlphp. I then added in the configuration file /etc/httpd/conf/extra/httpd-alias.conf the following line Alias /simplesaml "/var/simplesamlphp/www/". I changed ownership to apache (also group), www folder has chmod 755.

So now when I go to %URL%/simplesaml I receive a 403 error; in my Apache error log the following line appears:
[Thu Apr 11 17:40:43 2013] [error] [client 86.92.xx.xx] client denied by server configuration: /var/simplesamlphp/www/

I don't know ho to fix this.
Any help is appreciated.

Kind regards,

Jawat
 
Hello,

You should either put your PHP application in /var/www/html or update /etc/httpd/conf/extra/httpd-directories.conf to allow access into /var/simplesamlphp. As by default you've got something like the following:

Code:
<Directory />
        Options All
        AllowOverride All
</Directory>

<Directory /home>
        AllowOverride All
        Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
        <Limit GET POST OPTIONS PROPFIND>
                Order allow,deny
                Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS PROPFIND>
                Order deny,allow
                Deny from all
        </LimitExcept>
</Directory>

<Directory "/var/www/html">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        <IfModule mod_suphp.c>
                suPHP_Engine On
                suPHP_UserGroup webapps webapps
                SetEnv PHP_INI_SCAN_DIR
        </IfModule>
</Directory>

<Directory /var/www/cgi-bin>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>


which allows access only to specified directories through Apache.
 
Back
Top