Re: Dynamic VirtualHost's

[prev] [thread] [next] [Date index for 2005/03/04]

From: Marc =?ISO-8859-1?Q?Gr=E0cia?=
Subject: Re: Dynamic VirtualHost's
Date: 09:18 on 04 Mar 2005
--=-0q6HFU4v3JNGHXQn+hVR
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Well, In our case, the server doesn't have any mod_perl apps. Only uses
mod_perl (Or perl sections, i don't really know if it's the same....) to
dinamicaly generate the virtualhosts. 
That apache2 acts as a reverse proxy to controls several httpd servers
in the private lan with the mod_perl apps. It's a wonderfull option, if
you need it. Works really well, and adds some more features as caching,
warning pages while servers ar stopped or in maintenance.... And also
the most important part, the internal servers always use high bandwith
connections, so the session blocking time is lower.


El dv 04 de 03 del 2005 a les 15:37 +1100, en/na David J Radunz va
escriure:

> On Thu, 2005-03-03 at 11:44 +0100, Marc Gràcia wrote:
> > Is not necesary to restart apache... A "graceful" do the job.
> > I'm using this approach, and is really quick  and  not visible for end
> > users. (I have 50 or so virtualhosts, so maybe in your case can be a
> > little slower). 
> > Maybe some time after the "graceful" we have a little more load
> > (apache is replacing processes an all this) but works like a charm.
> > I think this is easily tested in your setup. 
> > 
> > 
> 
> Strange - Ive always found that 'graceful' (althou a great option) plays
> havoc with mod_perl applications.
> 
> > El dc 02 de 03 del 2005 a les 16:18 +0100, en/na Roman va escriure: 
> > > Hi all,
> > > Is it possible to dynamically create VirtualHost's using mod_perl, 
> > > taking the value of each directive in a database ? If it is, how can I 
> > > do exactly please ?
> > > Because actually, I'm doing things like :
> > > -----
> > > push(@{ $VirtualHost{'*:80'} }, \%conf);
> > > -----
> > > It works well, but with this method I must periodically restart Apache 
> > > and I think it uses as many memory as when we write 
> > > <VirtualHost></VirtualHost> 's in the Apache .conf file, does it ? 
> > > (there will be maybe thousands of VirtualHost's)
> > > 
> > > Thank you in advance,
> > > Roman.
> > > 
> > > 
> > -- 
> > Marc Gràcia <mgracia@xxxxxxxxx.xxx>
> 
> This email and any files transmitted with it are confidential and intended solely for the 
> use of the individual or entity to whom they are addressed. Please notify the sender 
> immediately by email if you have received this email by mistake and delete this email 
> from your system. Please note that any views or opinions presented in this email are solely
>  those of the author and do not necessarily represent those of the organisation. 
> Finally, the recipient should check this email and any attachments for the presence of 
> viruses. The organisation accepts no liability for any damage caused by any virus 
> transmitted by this email. 
> 
> 

--=-0q6HFU4v3JNGHXQn+hVR
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.3">
</HEAD>
<BODY>
Well, In our case, the server doesn't have any mod_perl apps. Only uses mod_perl (Or perl sections, i don't really know if it's the same....) to dinamicaly generate the virtualhosts. <BR>
That apache2 acts as a reverse proxy to controls several httpd servers&nbsp; in the private lan with the mod_perl apps. It's a wonderfull option, if you need it. Works really well, and adds some more features as caching, warning pages while servers ar stopped or in maintenance.... And also the most important part, the internal servers always use high bandwith connections, so the session blocking time is lower.<BR>
<BR>
<BR>
El dv 04 de 03 del 2005 a les 15:37 +1100, en/na David J Radunz va escriure:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Thu, 2005-03-03 at 11:44 +0100, Marc Gr&#224;cia wrote:</FONT>
<FONT COLOR="#000000">&gt; Is not necesary to restart apache... A &quot;graceful&quot; do the job.</FONT>
<FONT COLOR="#000000">&gt; I'm using this approach, and is really quick  and  not visible for end</FONT>
<FONT COLOR="#000000">&gt; users. (I have 50 or so virtualhosts, so maybe in your case can be a</FONT>
<FONT COLOR="#000000">&gt; little slower). </FONT>
<FONT COLOR="#000000">&gt; Maybe some time after the &quot;graceful&quot; we have a little more load</FONT>
<FONT COLOR="#000000">&gt; (apache is replacing processes an all this) but works like a charm.</FONT>
<FONT COLOR="#000000">&gt; I think this is easily tested in your setup. </FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; </FONT>

<FONT COLOR="#000000">Strange - Ive always found that 'graceful' (althou a great option) plays</FONT>
<FONT COLOR="#000000">havoc with mod_perl applications.</FONT>

<FONT COLOR="#000000">&gt; El dc 02 de 03 del 2005 a les 16:18 +0100, en/na Roman va escriure: </FONT>
<FONT COLOR="#000000">&gt; &gt; Hi all,</FONT>
<FONT COLOR="#000000">&gt; &gt; Is it possible to dynamically create VirtualHost's using mod_perl, </FONT>
<FONT COLOR="#000000">&gt; &gt; taking the value of each directive in a database ? If it is, how can I </FONT>
<FONT COLOR="#000000">&gt; &gt; do exactly please ?</FONT>
<FONT COLOR="#000000">&gt; &gt; Because actually, I'm doing things like :</FONT>
<FONT COLOR="#000000">&gt; &gt; -----</FONT>
<FONT COLOR="#000000">&gt; &gt; push(@{ $VirtualHost{'*:80'} }, \%conf);</FONT>
<FONT COLOR="#000000">&gt; &gt; -----</FONT>
<FONT COLOR="#000000">&gt; &gt; It works well, but with this method I must periodically restart Apache </FONT>
<FONT COLOR="#000000">&gt; &gt; and I think it uses as many memory as when we write </FONT>
<FONT COLOR="#000000">&gt; &gt; &lt;VirtualHost&gt;&lt;/VirtualHost&gt; 's in the Apache .conf file, does it ? </FONT>
<FONT COLOR="#000000">&gt; &gt; (there will be maybe thousands of VirtualHost's)</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; Thank you in advance,</FONT>
<FONT COLOR="#000000">&gt; &gt; Roman.</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; -- </FONT>
<FONT COLOR="#000000">&gt; Marc Gr&#224;cia &lt;<A HREF="mailto:mgracia@xxxxxxxxx.xxx">mgracia@xxxxxxxxx.xxx</A>&gt;</FONT>;

<FONT COLOR="#000000">This email and any files transmitted with it are confidential and intended solely for the </FONT>
<FONT COLOR="#000000">use of the individual or entity to whom they are addressed. Please notify the sender </FONT>
<FONT COLOR="#000000">immediately by email if you have received this email by mistake and delete this email </FONT>
<FONT COLOR="#000000">from your system. Please note that any views or opinions presented in this email are solely</FONT>
<FONT COLOR="#000000"> those of the author and do not necessarily represent those of the organisation. </FONT>
<FONT COLOR="#000000">Finally, the recipient should check this email and any attachments for the presence of </FONT>
<FONT COLOR="#000000">viruses. The organisation accepts no liability for any damage caused by any virus </FONT>
<FONT COLOR="#000000">transmitted by this email. </FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-0q6HFU4v3JNGHXQn+hVR--

Dynamic VirtualHost's
Roman 15:18 on 02 Mar 2005

Re: Dynamic VirtualHost's
David J Radunz 05:18 on 03 Mar 2005

Re: Dynamic VirtualHost's
Perrin Harkins 05:32 on 03 Mar 2005

Re: Dynamic VirtualHost's
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:44 on 03 Mar 2005

Re: Dynamic VirtualHost's
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:50 on 03 Mar 2005

Re: Dynamic VirtualHost's
David J Radunz 04:37 on 04 Mar 2005

Re: Dynamic VirtualHost's
Marc =?ISO-8859-1?Q?Gr=E0cia?= 09:18 on 04 Mar 2005

Generated at 20:12 on 07 Mar 2005 by mariachi v0.52