Hi!

Of course I understand that I need to write the whole container, this was
just en example (the ... was to illustrate that there was more information
there). I've added a container that looks exactly like one that works if I
do it directly in the httpd.conf (outside the <Perl></perl>).

Regarding the Tie::IxHash, it seems when I push in the hash into the
%VirtualHost, the order get's random again although it seems good in the
original hash.

Kind Regards,
Stefan Cars



On Sat, 14 Feb 2004, Stas Bekman wrote:

> Stefan Cars wrote:
> > Hi!
> >
> > I'm having trouble getting doing some perl configuration within
> > <Perl></Perl> in httpd.conf with Apache 2 and mod_perl 2 (both latest
> > version as of today). Using this do not work:
> >
> > use Apache::DBI;
> > use Snowfall::Database3;
> > use Apache::PerlSections ();
> > use Apache::ServerUtil ();
> > use Apache::Server;
> > my $s = Apache->server;
> > ....
> > $s->add_config("<VirtualHost x.x.x.x>");
> > ...
> >
> >
> > But this doesn't work, it still says that "namevirtualhost x.x.x.x does
> > not have any virtualhosts".
>
> Since you need to add the whole vhost container at once I believe. Not just
> the opening <V...>
>
> > I have tried to go the "real" way of using $VirtualHost{'213....'} but the
> > problem occurs when I have to use RewriteRule etc, and want to have the
> > entries come out the same way they came into the hash (and using
> > Tie::IxHash isn't really working very well).
>
> What doesn't work about Tie::IxHash? Perhaps we should add a test using it.
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to