Re: Dynamic VirtualHost's
[prev]
[thread]
[next]
[Date index for 2005/03/03]
--=-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 "graceful" do the job.<BR>
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). <BR>
Maybe some time after the "graceful" 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"><VirtualHost></VirtualHost> '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àcia <<A HREF="mailto:mgracia@xxxxxxxxx.xxx">mgracia@xxxxxxxxx.xxx</A>>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--=-LSsez93y4RFpYYR8pAez--
 |
 |
Re: Dynamic VirtualHost's
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:44 on 03 Mar 2005
|