This is a little over my head......is it really the solution to my
problem? Does this mean the problem lies with ModPerl::RegistryPrefork? There has to be a better way to have index.pl show up as default! However, if you tell me there isn't, I shall begin learning about this and pursuing it further. Does anyone out there have index.pl coming up as default in a vhost and can share their httpd.conf file? Dickon... Matthew Ryan wrote: 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 |
- Re: index.pl not default, even when specified Dickon Newman
- Re: index.pl not default, even when specified Jeff
- Re: index.pl not default, even when specified Dickon Newman
- RE: index.pl not default, even when specifie... Frank Maas
- Re: index.pl not default, even when specifie... Jeff
- Re: index.pl not default, even when specifie... Jonathan Steffan
- Re: index.pl not default, even when spec... Perrin Harkins
- Re: index.pl not default, even when... Jonathan Steffan
- Re: index.pl not default, even ... Perrin Harkins
- Re: index.pl not default, e... Jonathan Steffan
- Re: index.pl not default, e... Geoffrey Young