You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Detlef Vollmann <dv...@vollmann.ch> on 2011/01/12 01:11:50 UTC
[users@httpd] suexec and access errors
Hello,
using suexec, it's possible that a file is not accessible by
the apache user, but still accessible (through a script) to
the HTTP client.
So my configuration looks like this:
<VirtualHost *:80>
ServerName test.host
ServerAlias test.host.vollmann.ch
DocumentRoot /test/www
SuexecUserGroup wwwtest test
ScriptAlias /test /var/www-suexec/test/auth-command
# avoid error logs about non-accessible htaccess files:
<Directory /test>
AllowOverride None
</Directory>
</VirtualHost>
Now the client sends a request like
<http://test.host/test/data/info/index?service=get>
And the script handles that request and everything is fine.
But in the error log I find an entry:
(13)Permission denied: access to /data/info/index denied
This is (probably) because the apache user has no access
to /test/www/data/info, neither read nor execute.
How can I avoid this (bogus) error entry?
Running Apache/2.2.9 on Linux (Debian lenny).
Detlef
---------------------------------------------------------------------
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