11.6 <Perl> SectionsWith mod_perl , you can use Perl in Apache configuration files. What this means is that you can make your Apache configuration much more flexible by using conditionals.
Any Perl code in Apache configuration files should be
placed between Suppose you share the same Apache configuration files across multiple servers, and you only want to allow personal directories on one of them. You can use Perl directives like this: Directive blocks (such as<Perl> if (`hostname` =~ /public/) { $UserDir = "public.html"; } else { $UserDir = "DISABLED"; } 1; </Perl>
<Location>...</Location\>
)
can be represented as a hash. For example:
<Perl> $Location{"/design_dept/"} = { DefaultType => 'image/gif', FancyIndexing => 'On' } </Perl> Copyright © 2001 O'Reilly & Associates. All rights reserved. |
|