You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Lancaster <to...@redhat.com> on 2000/11/16 20:06:43 UTC
in virtualhosts in perl sections
Anyone have any experience doing <Files> sections inside of perlsections virtualhosts.
I can't see anything in the docs about this.
Just wanted to ask before I start experimenting, as I don't have the first clue about how this syntax might work.
Thanks,
--
Tom Lancaster Red Hat, Inc.
Web Engineer (415) 777-9810 x 228
Re: in virtualhosts in perl sections
Posted by Benjamin Trott <be...@rhumba.pair.com>.
> Anyone have any experience doing <Files> sections inside of perlsections
> virtualhosts.
> I can't see anything in the docs about this.
> Just wanted to ask before I start experimenting, as I don't have the first
> clue about how this syntax might work.
Assuming I'm not missing something subtle about Files blocks vs. Location
blocks--I've done the latter, not the former--you can just assign your Files
key a hashref:
push @{ $VirtualHosts{$IP} }, {
Files => {
'/foo' => {
SetHandler => 'perl-script',
PerlHandler => 'Foo',
},
},
};
And so on. I use "push" instead of direct assignment because it allows for
multiple named virtual hosts.
bye,
Ben