Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Sep 12, 2003 at 02:39 UTC ( [id://290902]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://290902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found