You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sri <gs...@yahoo.com> on 2005/10/13 20:06:09 UTC

[users@httpd] urgent help needed for name based virtual hosts configuration problem

Hi,
 
I am configuring name based virtual hosts in my apache2 server.I have created a group and username called bahu and i have configured the virtual host as follows
 

#-------------------------
# Name-Based Virtual Host
#-------------------------
NameVirtualHost x.x.x.x
<VirtualHost x.x.x.x>
User bahu
Group bahu
ServerAdmin email
DocumentRoot /home/www/
ServerName www.domai.com
ErrorLog /usr/local/apache/logs/isetan/error.log
TransferLog /usr/local/apache/logs/isetan/access.log
ScriptAlias /cgi-bin/ /home/www/user/cgi-bin/
</VirtualHost>
<Directory /home/www/user/cgi-bin>
Options None
AllowOverride None
</Directory>
 
When i try to restart the apache server i am getting the following error in this error line 54 is 

User bahu
Group bahu

Error message
 
Forcing reload of web server: Apache2 ... failed!
You may still have some apache2 processes running.  There are
processes named 'apache2' which do not match your pid file,
and in the name of safety, we've left them alone.  Please review
the situation by hand.
Syntax error on line 54 of /etc/apache2/sites-enabled/000-default:
User cannot occur within <VirtualHost> section

Can some one tell me where i am going wrong.If i want to configure Name-Based Virtual Host with perticular user,group is there any other settings i need to check.
 
Thanks for your help
 
 
 

		
---------------------------------
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: [users@httpd] urgent help needed for name based virtual hosts configuration problem

Posted by Joshua Slive <js...@gmail.com>.
On 10/14/05, Sri <gs...@yahoo.com> wrote:
> hi Slive,
>
> thanks for your help.Yes i need to do the same thing i need to install
> mod_suexec module to my existing apache 2 Please help me how to install this
> module to existing one currently i have checked the existing modules it is
> not there.

It appears you are using some sort of vendor-distributed version of
apache.  So I have no way of knowing how it is configured or how to
add modules.  You'll need to ask your vendor.  Sorry.

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] urgent help needed for name based virtual hosts configuration problem

Posted by Sri <gs...@yahoo.com>.
hi Slive,
 
thanks for your help.Yes i need to do the same thing i need to install  mod_suexec module to my existing apache 2 Please help me how to install this module to existing one currently i have checked the existing modules it is not there.

 

Thanks 

 


Joshua Slive <js...@gmail.com> wrote:
On 10/13/05, Sri wrote:
> Hi,
>
> I am configuring name based virtual hosts in my apache2 server.I have
> created a group and username called bahu and i have configured the virtual
> host as follows

> 
> User bahu
> Group bahu

> Syntax error on line 54 of
> /etc/apache2/sites-enabled/000-default:
> User cannot occur within section
>
> Can some one tell me where i am going wrong.If i want to configure
> Name-Based Virtual Host with perticular user,group is there any other
> settings i need to check.

If you mean that you want all request serving to be under a different
userid for the virtualhost, then this is not possible. (You can look
at the metux mpm, but I don't think it is very stable.)

If you mean you want suexec to run cgi scripts under that userid (as
you could do in apache 1.3), then you want the SuexecUserGroup
directive.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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


		
---------------------------------
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: [users@httpd] urgent help needed for name based virtual hosts configuration problem

Posted by Joshua Slive <js...@gmail.com>.
On 10/13/05, Sri <gs...@yahoo.com> wrote:
> Hi,
>
> I am configuring name based virtual hosts in my apache2 server.I have
> created a group and username called bahu and i have configured the virtual
> host as follows

> <VirtualHost x.x.x.x>
> User bahu
> Group bahu

> Syntax error on line 54 of
> /etc/apache2/sites-enabled/000-default:
> User cannot occur within <VirtualHost> section
>
> Can some one tell me where i am going wrong.If i want to configure
> Name-Based Virtual Host with perticular user,group is there any other
> settings i need to check.

If you mean that you want all request serving to be under a different
userid for the virtualhost, then this is not possible.  (You can look
at the metux mpm, but I don't think it is very stable.)

If you mean you want suexec to run cgi scripts under that userid (as
you could do in apache 1.3), then you want the SuexecUserGroup
directive.

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