in reply to Perl script to handle requests to a http://.../path/*

Webserver foo isn't my thing, but as noone else has mentioned this. Can't you add something like index.pl to the DirectoryIndex configuration option in the Apache httpd.conf file and have it invoke a script of that name (from the named directory) if a path is supplied without a specific document being named?

You have to also enable the .pl as a CGI handler, but presumably this is already done.

Thinking about it, maybe the "I don't have root access" stops you from taking this option, but I'm not sure, so I'll post this anyway.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.

Replies are listed 'Best First'.
Re: Re: Perl script to handle requests to a http://.../path/*
by BigLug (Chaplain) on Sep 12, 2003 at 03:41 UTC
    Thinking about it, maybe the "I don't have root access" stops you from taking this option, but I'm not sure, so I'll post this anyway.
    Most ISPs let you create .htaccess files in each directory. Just put the DirectoryIndex option into the root .htaccess and you're on your way. The trickier thing is getting it to recognise files with no extension as CGI scripts.