Re: defaulting to index.pl

[prev] [thread] [next] [Date index for 2005/03/01]

From: Gavin Henry
Subject: Re: defaulting to index.pl
Date: 17:01 on 01 Mar 2005
<quote who="Chris Croome">
> Hi
>
> On Tue 01-Mar-2005 at 04:34:57PM -0000, Gavin Henry wrote:
>>
>> I have been reading http://perl.apache.org and
>> http://modperlbook.org/
>>
>> and I understand the Apache::Registry parts of the docs, i.e.
>> enabling say /perl/ for an alias etc.
>>
>> But, all I want to do is stick a index.pl in the main root
>> directory and go from there.
>>
>> I know this is done with the <Files></Files> parameter, but it's
>> confusing the  out of me.
>
> You need to tell apache which file to serve as a directory index:
>
>   DirectoryIndex index.pl
>
>   http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex
>
> And also you need to enable scripts, I'd use a <Directory> directive
> something like this if I were you:
>
>   DocumentRoot /var/www/html
>   <Directory /var/www/html>
>     AllowOverride None
>     Options ExecCGI Indexes
>     DirectoryIndex index.pl
>     Order allow,deny
>     Allow from all
>   </Directory>
>
> Chris

Many thanks,

I'll try this tonight.


        -- 
        Just getting into the best language ever...
Fancy a yourname@xxxx.xx.xx? Just ask!!!

defaulting to index.pl
Gavin Henry 16:34 on 01 Mar 2005

Re: defaulting to index.pl
Chris Croome 16:46 on 01 Mar 2005

Re: defaulting to index.pl
Gavin Henry 17:01 on 01 Mar 2005

Generated at 00:33 on 04 Mar 2005 by mariachi v0.52