You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Pritpal Dhaliwal <pd...@tycoint.com> on 2002/08/07 19:45:17 UTC

So how does Virtual Host User on apache2 work?

I saw that in apache2, you can assign a user to a virtual host.

How do you do that? Has anyone tried it?

Paul

Re: So how does Virtual Host User on apache2 work?

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

no you should use something like this:

--enable-sueexec --suexec-caller=nobody --suexec-docroot=/usr/local/apache/cgi-bin/ --suexec-logfile=/usr/local/apache/logs/suexec_log --suexec-uidmin=500 --suexec-gidmin=500

For --suexec-caller you should use the username in your httpd.conf file. In the main configuration (not inside the <VirtualHost>) you will need the lines:
User nobody
Group nobody

For --suexec-docroot you have to specify in which directory suexec should be allowed to work. In the case above cgi files will not be executed with suexec in /usr/local/apache/htdocs/. So choose a path that includes all directories where you would like to use cgi.

Jurgen
apache@squarehosting.com


On Wed, 7 Aug 2002 11:02:03 -0700
"Pritpal Dhaliwal" <pd...@tycoint.com> wrote:

> if you compile your apache with option
> 
> --include-module=all
> 
> would suExec be compiled?
> 
> Pritpal Dhaliwal
> 
> -----Original Message-----
> From: Jurgen [mailto:apache@squarehosting.com]
> Sent: Wednesday, August 07, 2002 11:03 AM
> To: users@httpd.apache.org
> Subject: Re: So how does Virtual Host User on apache2 work?
> 
> 
> Hi,
> 
> If I understand your question correctly you might be talking about suexec, which would have to be compiled into the apache server if it isn't.
> Then in httpd.conf you have something like this:
> <VirtualHost *:80>
> ...
> ...
> User northpole
> Group northpole
> ...
> </VirtualHost>
> 
> The result is that everything under this virtual host will be executed under the specified user id.
> 
> Jurgen
> apache@squarehosting.com
> 
> 
> On Wed, 7 Aug 2002 10:45:17 -0700
> "Pritpal Dhaliwal" <pd...@tycoint.com> wrote:
> 
> > I saw that in apache2, you can assign a user to a virtual host.
> > 
> > How do you do that? Has anyone tried it?
> > 
> > Paul
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: So how does Virtual Host User on apache2 work?

Posted by Pritpal Dhaliwal <pd...@tycoint.com>.
if you compile your apache with option

--include-module=all

would suExec be compiled?

Pritpal Dhaliwal

-----Original Message-----
From: Jurgen [mailto:apache@squarehosting.com]
Sent: Wednesday, August 07, 2002 11:03 AM
To: users@httpd.apache.org
Subject: Re: So how does Virtual Host User on apache2 work?


Hi,

If I understand your question correctly you might be talking about suexec, which would have to be compiled into the apache server if it isn't.
Then in httpd.conf you have something like this:
<VirtualHost *:80>
...
...
User northpole
Group northpole
...
</VirtualHost>

The result is that everything under this virtual host will be executed under the specified user id.

Jurgen
apache@squarehosting.com


On Wed, 7 Aug 2002 10:45:17 -0700
"Pritpal Dhaliwal" <pd...@tycoint.com> wrote:

> I saw that in apache2, you can assign a user to a virtual host.
> 
> How do you do that? Has anyone tried it?
> 
> Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




Re: So how does Virtual Host User on apache2 work?

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

If I understand your question correctly you might be talking about suexec, which would have to be compiled into the apache server if it isn't.
Then in httpd.conf you have something like this:
<VirtualHost *:80>
...
...
User northpole
Group northpole
...
</VirtualHost>

The result is that everything under this virtual host will be executed under the specified user id.

Jurgen
apache@squarehosting.com


On Wed, 7 Aug 2002 10:45:17 -0700
"Pritpal Dhaliwal" <pd...@tycoint.com> wrote:

> I saw that in apache2, you can assign a user to a virtual host.
> 
> How do you do that? Has anyone tried it?
> 
> Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: So how does Virtual Host User on apache2 work?

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
This is a feature of the perchild mpm.


On Wed, 7 Aug 2002, Pritpal Dhaliwal wrote:

> I saw that in apache2, you can assign a user to a virtual host.
>
> How do you do that? Has anyone tried it?
>
> Paul
>

----------------------------------------
"Mon aƩroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org