Different vhosts using mod_ruid

--0016e6d9677e17fc4104799a5183
Content-Type: text/plain; charset=ISO-8859-1

Hi,

i've tried to set up a configuration with mod_ruid. I didn't find so
many documents about it in the whole web.

My predictable goal would be to set different apache UID running for
different apache children.

I've done follow steps on an ubuntu karmik:

- download and install module as described here:
http://websupport.sk/~stanojr/projects/mod_ruid

- create file /etc/apache2/mod-availables/ruid.load which content is:

LoadModule ruid_module /usr/lib/apache2/modules/mod_ruid.so

- create file /etc/apache2/mod-availables/ruid.conf which content is:
User www-data
Group www-data
RMode stat
RGroups www-data

- typed "a2enmod ruid" loading changes properly.

I've configured example.org virtual host as follow:
NameVirtualHost 10.4.4.200
<VirtualHost example.org>
ServerAdmin user [at] example.org
DocumentRoot /home/user/public_html
ServerName example.org
RMode config
RUidGid user user
</VirtualHost>

Now, if i run "ps aux |grep apache" i can see apache running as "www-data"
instead "user". But if i put:

User user
Group user
in ruid.conf, apache running as "user".
This apparently means example.org config file cannot overwrites settings.
How
can i setup more vhosts in this way?

Does anyone has been more lucky running mod_ruid?
Thanks


ZMo

--0016e6d9677e17fc4104799a5183
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>i've tried to set up a configuration with mod_ruid. I didn&#=
39;t find so <br>many documents about it in the whole web.<br><br>My <span =
onclick=3D"dr4sdgryt(event)">predictable </span>goal=A0 would be to set dif=
ferent apache UID running for<br>
different apache children.<br><br>I've done follow steps on an ubuntu k=
armik:<br><br>=A0- download and install module as described here:<br>=A0<a =
href=3D"http://websupport.sk/~stanojr/projects/mod_ruid">htt p://websupport.=
sk/~stanojr/projects/mod_ruid</a><br>
<br>- create file /etc/apache2/mod-availables/ruid.load which content is:<=
br><br>LoadModule ruid_module=A0=A0 /usr/lib/apache2/modules/mod_ruid.so<br=
><br>- create file /etc/apache2/mod-availables/ruid.conf which content is:=
<br>
User=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 www-data<br>Group=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 www-data<br>RMode=A0=A0=A0=A0=A0=A0=A0=A0=A0 stat<br>=
RGroups=A0=A0=A0=A0=A0=A0 www-data<br><br>- typed "a2enmod ruid" =
loading changes properly.<br><br>I've configured <a href=3D"http://exam=
ple.org">example.org</a> virtual host as follow:<br>
NameVirtualHost 10.4.4.200<br><VirtualHost <a href=3D"http://example.org=
">example.org</a>><br>=A0 ServerAdmin=A0=A0=A0 <a href=3D"mailto:user [at] ex=
ample.org">user [at] example.org</a><br>=A0 DocumentRoot=A0=A0 /home/user/public=
_html<br>=A0 ServerName=A0=A0=A0=A0 <a href=3D"http://example.org">example.=
org</a><br>
=A0 RMode=A0=A0=A0=A0=A0 =A0 =A0=A0 =A0=A0 config<br>=A0 RUidGid=A0=A0=A0=
=A0=A0 =A0 =A0 =A0 user user<br></VirtualHost><br><br>Now, if i run &=
quot;ps aux |grep apache" i can see apache running as "www-data&q=
uot; <br>instead "user". But if i put:<br>
<br>User=A0=A0=A0=A0=A0=A0=A0=A0 user<br>
Group=A0=A0=A0=A0=A0=A0 user<br>in ruid.conf, apache running as "user&=
quot;.<br>This apparently means <a href=3D"http://example.org">example.org<=
/a> config file cannot overwrites settings. How<br>can i setup more vhosts =
in this way?<br>
<br>Does anyone has been more lucky running mod_ruid?<br>Thanks<br><br><br>=
ZMo<br><br>

--0016e6d9677e17fc4104799a5183--
Simone Roselli [ Mo, 30 November 2009 18:53 ] [ ID #2024389 ]
Webserver » gmane.comp.apache.user » Different vhosts using mod_ruid

Vorheriges Thema: SSL negotiation failed - while Subverison update/checkout operation
Nächstes Thema: When it rains it pours...