You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Benjamin CAILLAT <bc...@yahoo.fr> on 2002/09/10 14:57:54 UTC

[users@httpd] Suexec and VirtualHost

Hi all,

I need some help on the configuration of apache
suexec.
I would like that some scripts executes under id toto
and the others under nobody in the same virtual host.
But it seems the directives User and Group must be
added just under <VirtualHost>, so it seems impossible
to make that the scripts in directory AAA run under
toto and the scripts in directory BBB run under
nobody. Something like this:

<VirtualHost XXX>
ScriptAlias AAA ZZZ
<Directory AAA>
User toto
Group tata
</Directory>
</VirtualHost>

This configuration is rejected.

Any idea ?

Thanks for help.

Benjamin. 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.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


Re: [users@httpd] Suexec and VirtualHost

Posted by Lewis Watson <li...@visionsix.com>.
----- Original Message ----- 
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, September 10, 2002 8:48 AM
Subject: Re: [users@httpd] Suexec and VirtualHost


> Benjamin CAILLAT wrote:
> > Hi all,
> > 
> > I need some help on the configuration of apache
> > suexec.
> > I would like that some scripts executes under id toto
> > and the others under nobody in the same virtual host.
> 
> You can't do that with suexec.  You may want to look into cgi-wrap.  I'm 
> not sure if it will support that configuration.
> 
> Joshua.
> 

Opps, didn't read the whole question. You are right.
Lewis



---------------------------------------------------------------------
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] Suexec and VirtualHost

Posted by Joshua Slive <jo...@slive.ca>.
Benjamin CAILLAT wrote:
> Hi all,
> 
> I need some help on the configuration of apache
> suexec.
> I would like that some scripts executes under id toto
> and the others under nobody in the same virtual host.

You can't do that with suexec.  You may want to look into cgi-wrap.  I'm 
not sure if it will support that configuration.

Joshua.


---------------------------------------------------------------------
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] Suexec and VirtualHost

Posted by Lewis Watson <li...@visionsix.com>.
----- Original Message ----- 
From: "Benjamin CAILLAT" <bc...@yahoo.fr>
To: <us...@httpd.apache.org>
Sent: Tuesday, September 10, 2002 7:57 AM
Subject: [users@httpd] Suexec and VirtualHost


> Hi all,
> 
> I need some help on the configuration of apache
> suexec.
> I would like that some scripts executes under id toto
> and the others under nobody in the same virtual host.
> But it seems the directives User and Group must be
> added just under <VirtualHost>, so it seems impossible
> to make that the scripts in directory AAA run under
> toto and the scripts in directory BBB run under
> nobody. Something like this:
> 
> <VirtualHost XXX>
> ScriptAlias AAA ZZZ
> <Directory AAA>
> User toto
> Group tata
> </Directory>
> </VirtualHost>
> 
> This configuration is rejected.
> 
> Any idea ?
> 
> Thanks for help.
> 
> Benjamin. 


What is the cgi.log file showing? How was suexec compiled?
Thanks.
Lewis Watson





---------------------------------------------------------------------
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