Files .. in virtualhosts in perl sections

2000-11-16 Thread Tom Lancaster

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: Files .. in virtualhosts in perl sections

2000-11-16 Thread Benjamin Trott

 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