httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Detlef Vollmann ...@vollmann.ch>
Subject [users@httpd] suexec and access errors
Date Wed, 12 Jan 2011 00:11:50 GMT
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


Mime
View raw message