You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bill Moseley <mo...@hank.org> on 2002/12/19 16:14:51 UTC

Can't get nested to work in section

mod_perl 1.27 / httpd 1.3.27

In the <perl> httpd.conf below "test.cgi" is returned as the default type,
text/plain, where "test2.cgi" is run as a CGI script.

Do I have this setup incorrectly?

In a standard httpd.conf file it's allowable to have <files> nested within
<directory>, of course.

 <Perl>
 #!perl
 $User = 'nobody';
 $Group = 'users';
 $ServerRoot = '/home/moseley/test';
 $TypesConfig = '/dev/null';
 $Listen = '*:8000';

 $VirtualHost{'*:8000'} = {
    ServerName   => 'foo',
    DocumentRoot => '/home/moseley/test',
    ErrorLog     => 'logs/error_log.8000',
    TransferLog  => 'logs/error_log.8000',

    Files => {
        'test2.cgi' => {
            Options     => '+ExecCGI',
            SetHandler  => 'cgi-script',
        },
    },


    Directory => {
        '/home/moseley/test' => {
            Allow   => 'from all',
            Files => {
                'test.cgi' => {
                    Options     => '+ExecCGI',
                    SetHandler  => 'cgi-script',
                },
            },
        },
    },
 };
 

 __END__


-- 
Bill Moseley
mailto:moseley@hank.org

Re: Can't get nested to work in section

Posted by fliptop <fl...@peacecomputers.com>.
On Thu, 19 Dec 2002 at 07:14, Bill Moseley opined:

BM:mod_perl 1.27 / httpd 1.3.27
BM:
BM:In the <perl> httpd.conf below "test.cgi" is returned as the default type,
BM:text/plain, where "test2.cgi" is run as a CGI script.
BM:
BM:Do I have this setup incorrectly?
BM:
BM:In a standard httpd.conf file it's allowable to have <files> nested within
BM:<directory>, of course.
[snip]

hi bill

there was a post from stas on this over the summer:

http://marc.theaimsgroup.com/?l=apache-modperl&m=102801712431002&w=2

the trick is to use FilesMatch instead of Files.  however, i have been
unable to get multiple FilesMatch directives working (it does work if
there's only one directive).  stas mentioned posting a message about the
Files bug to the dev list; perhaps searching that list's archives may
yield some answers.