Dickon,

> I'm having trouble with my default index file (DirectoryIndex) in
> Apache 

What happens if you move (or copy) the DirectoryIndex definition into
the directory container for the perl scripts. Thus:

> <VirtualHost *:80>
>      ServerName 10.1.1.249
>      DocumentRoot /usr/local/www/data/
>      UseCanonicalName Off
>      VirtualDocumentRoot /usr/local/www/data/
>      LogFormat "%V %h %l %u %t \"%r\" %s %b" combined
>      ErrorLog /var/log/apache/error.log
>      CustomLog /var/log/apache/access.log combined
> 
>      PerlRequire "/usr/local/www/data/setcwd.pl"
> 
>      <Directory "/usr/local/www/data/">
>         DirectoryIndex index.pl
>         SetHandler perl-script
>         PerlResponseHandler ModPerl::RegistryPrefork        
>         PerlSendHeader Off AllowOverride None
>         Options +ExecCGI
>         Order allow,deny
>         Allow from all
>      </Directory>
> 
> </VirtualHost>

Regards,

Frank

Reply via email to