Dickon Wrote: >2. No matter what I try to do, index.pl does not show up as the default >page. Instead, Apache gives me a directory listing. I've tried >searching various lists and forums but I cannot find a straightforward >solution.
Hello Dickon, I was intrigued by your dilemma and I tried unsuccessfully to get my own apache program to serve something other than index.html as the default page. So I gave up on forcing another file to show and used a module to serve a page instead. Using this <Directory in my Apache config file: ################################################ <Directory /> SetHandler modperl PerlResponseHandler Apache2::Hello Options +ExecCGI FollowSymLinks PerlOptions +ParseHeaders AllowOverride None </Directory> ##########and my Hello.pm file is as follows: package Apache2::Hello; use strict; use Apache2::RequestRec (); # for $r->content_type use Apache2::RequestIO (); # for $r->puts use Apache2::Const -compile => ':common'; sub handler { my $r = shift; my $time = scalar localtime(); my $package = __PACKAGE__; $r->content_type('text/html'); $r->puts(<<"END"); <html><body>Hello World.</body></html> END return Apache2::Const::OK; } 1; ################################################### HTH ,Matthew