You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Brent Clark <br...@gmail.com> on 2008/07/31 10:49:01 UTC

[users@httpd] client denied by server configuration:

Hi

For the likes of me, I cant resolve this problem.

I keep getting

client denied by server configuration:
/usr/share/gallery/css/config.css.default, referer:

This is my vhost.

<VirtualHost *:80>
    ServerAdmin webmaster@xyz.com

    ServerName xyz.com

#    Alias /albums/ /usr/share/gallery/album/

    Alias /gallery /usr/share/gallery

    <Directory /usr/share/gallery>
    Options FollowSymLinks
    AllowOverride Limit Options FileInfo

    <FilesMatch "\.(sh|inc|pl|tpl|pot|po|mo|cfg|def|default)$">
    Order allow,deny
    Deny from all
    </FilesMatch>

    </Directory>

</VirtualHost>

If anyone could assist, I would be most appreciative.

Kind Regards
Brent Clark


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] client denied by server configuration:

Posted by André Warnier <aw...@ice-sa.com>.
Brent Clark wrote:
> Hi
> 
> For the likes of me, I cant resolve this problem.
> 
> I keep getting
> 
> client denied by server configuration:
> /usr/share/gallery/css/config.css.default, referer:
> 
> This is my vhost.
> 
> <VirtualHost *:80>
>    ServerAdmin webmaster@xyz.com
> 
>    ServerName xyz.com
> 
> #    Alias /albums/ /usr/share/gallery/album/
> 
>    Alias /gallery /usr/share/gallery
> 
>    <Directory /usr/share/gallery>
>    Options FollowSymLinks
>    AllowOverride Limit Options FileInfo
> 
>    <FilesMatch "\.(sh|inc|pl|tpl|pot|po|mo|cfg|def|default)$">
>    Order allow,deny
>    Deny from all
>    </FilesMatch>
> 
>    </Directory>
> 
> </VirtualHost>
> 
I can't see the problem, honestly.
The message says that it denied access to a file ending in ".default".
Which is what you seem to want, when you specify your <FilesMatch>, no ?

André

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] client denied by server configuration:

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jul 31, 2008 at 4:49 AM, Brent Clark <br...@gmail.com> wrote:
> Hi
>
> For the likes of me, I cant resolve this problem.
>
> I keep getting
>
> client denied by server configuration:
> /usr/share/gallery/css/config.css.default, referer:
>
>   Alias /gallery /usr/share/gallery

The default conf denies access to everything, then punches a hole for
your document root.

Your httpd.conf has a <Directory> stanza that allows access to your
original DocumentRoot, including 'allow from all'.  If you add an
Alias or a DocumentRoot that is outside your original DocumentRoot,
you need to add another <Directory> that allows access to those files.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org