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:[EMAIL PROTECTED]

Reply via email to