You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nick De Decker <ni...@i-vision.be> on 2002/04/03 00:58:19 UTC

suexec with virtualhosts

Hello,

I'm having a little problem with suexec.
I configured apache with following suexec options :
 --enable-suexec \
 --suexec-caller=apache \
 --suexec-docroot=/iVision/users \
 --suexec-logfile=/var/log/apache/suexec.log \
 --suexec-uidmin=1000 \
 --suexec-gidmin=1000 \

I need several virtualhosts, this is an example of one :

<Virtualhost pico.i-vision.be>
  user pico
  DocumentRoot /iVision/users/testing/pico
  Servername pico.i-vision.be

  <Directory "/iVision/users/testing/pico">
     Options ExecCGI
  </Directory>

</VirtualHost>

And i have a valid user named "pico" :
uid=1120(pico) gid=1100(testing) groups=1100(testing)

Now whenever i try to execute http://pico.i-vision.be/test.cgi i get the
internal server error and following entry in suexec.log :
[2002-04-02 23:50:36]: crit: calling user mismatch (pico instead of apache)

(when i delete the user directive in my virtualhost then the script executes
fine, but as the default apache user, apache, this is not what i need.)
By reading the suexec.html file i think it must be possible

<quote>

One way to use the suEXEC wrapper is through the User and Group directives
in VirtualHost definitions. By setting these directives to values different
from the main server user ID, all requests for CGI resources will be
executed as the User and Group defined for that <VirtualHost>. If only one
or neither of these directives are specified for a <VirtualHost> then the
main server userid is assumed

</quote>

Can anyone tell me what i am doing wrong ?

Regards,
Nick



---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org