Re: Dynamic VirtualHost's

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

From: Marc =?ISO-8859-1?Q?Gr=E0cia?=
Subject: Re: Dynamic VirtualHost's
Date: 10:44 on 03 Mar 2005
--=-LSsez93y4RFpYYR8pAez
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

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. 


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>

--=-LSsez93y4RFpYYR8pAez
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>
Is not necesary to restart apache... A &quot;graceful&quot; do the job.<BR>
I'm using this approach, and is really quick&nbsp; and&nbsp; not visible for end users. (I have 50 or so virtualhosts, so maybe in your case can be a little slower). <BR>
Maybe some time after the &quot;graceful&quot; we have a little more load (apache is replacing processes an all this) but works like a charm.<BR>
I think this is easily tested in your setup. <BR>
<BR>
<BR>
El dc 02 de 03 del 2005 a les 16:18 +0100, en/na Roman va escriure:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi all,</FONT>
<FONT COLOR="#000000">Is it possible to dynamically create VirtualHost's using mod_perl, </FONT>
<FONT COLOR="#000000">taking the value of each directive in a database ? If it is, how can I </FONT>
<FONT COLOR="#000000">do exactly please ?</FONT>
<FONT COLOR="#000000">Because actually, I'm doing things like :</FONT>
<FONT COLOR="#000000">-----</FONT>
<FONT COLOR="#000000">push(@{ $VirtualHost{'*:80'} }, \%conf);</FONT>
<FONT COLOR="#000000">-----</FONT>
<FONT COLOR="#000000">It works well, but with this method I must periodically restart Apache </FONT>
<FONT COLOR="#000000">and I think it uses as many memory as when we write </FONT>
<FONT COLOR="#000000">&lt;VirtualHost&gt;&lt;/VirtualHost&gt; 's in the Apache .conf file, does it ? </FONT>
<FONT COLOR="#000000">(there will be maybe thousands of VirtualHost's)</FONT>

<FONT COLOR="#000000">Thank you in advance,</FONT>
<FONT COLOR="#000000">Roman.</FONT>


</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Marc Gr&#224;cia &lt;<A HREF="mailto:mgracia@xxxxxxxxx.xxx">mgracia@xxxxxxxxx.xxx</A>&gt;
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-LSsez93y4RFpYYR8pAez--

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