Here's a bit more information: Given two directives: $VirtualHost{$host}->{Alias} = [ '/perl/', "$vhostdir/$dir/perl/" ]; $VirtualHost{$host}->{Alias} = $vhost{config}->{Alias};
The first works. The second does not. According to Apache::PerlSections->dump, %VirtualHost is *exactly* the same when using both directives - yet it seems the server ignores the Alias directive when it's assigned from $vhost{config} (either that, mod_perl fails to pass it to the server). Also, if I set a variable within httpd.conf to mimic $vhost{config} and then assign that to $VirtualHost{$host}, it works without a problem. The issuse is definitely with the variable being read in from an external file. Strange, no? On Fri, Apr 19, 2002 at 01:31:45AM -0400, PinkFreud babbled thus: > Date: 19 Apr 2002 01:31:45 -0400 > Date: Fri, 19 Apr 2002 01:31:45 -0400 > From: PinkFreud <[EMAIL PROTECTED]> > To: Salvador Ortiz Garcia <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: Problem with <Perl> sections in httpd.conf, mod_perl 1.26 > Mail-Followup-To: Salvador Ortiz Garcia <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > User-Agent: Mutt/1.3.25i > > On Thu, Apr 18, 2002 at 11:15:15PM -0500, Salvador Ortiz Garcia babbled thus: > > Subject: Re: Problem with <Perl> sections in httpd.conf, mod_perl 1.26 > > From: Salvador Ortiz Garcia <[EMAIL PROTECTED]> > > To: PinkFreud <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED] > > X-Mailer: Ximian Evolution 1.0.3 > > Date: 18 Apr 2002 23:15:15 -0500 > > > > On Mon, 2002-04-15 at 23:17, PinkFreud wrote: > > > I have a rather odd problem, one which I can only assume is a bug > > > somewhere, due to how bizarre it is. > > > > > > I am attmempting to generate virtual host configs via mod_perl, using > > > <Perl> sections in httpd.conf. Not all hosts will be using a /perl > > > Alias, though, so I'm reading in an external config, which looks like > > > the following: > > > > > [ Deleted ] > > > > Plese try changing your Alias array ref to a simple scalar: > > > > ... > > 'Alias' => '"/perl/" "/home/vhosts/linuxhelp.mirkwood.net/perl/"', > > ... > > > > That should work. > > Nope. Still can't find it. > > What gets me is the syntax I use for Alias works just fine when the > code is in httpd.conf. It only fails to work when I read it in via a > require'd file. This same behavior occurs when I use your syntax in > the require'd file as well. > > /me scratches his head, perplexed. > > > > > And yes, I think its an old bug in perl_handle_command_av. > > > > Salvador Ortiz. > > -- Mike Edwards Brainbench certified Master Linux Administrator http://www.brainbench.com/transcript.jsp?pid=158188 ----------------------------------- Unsolicited advertisments to this address are not welcome.