> 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

Reply via email to