xiper has asked for the wisdom of the Perl Monks concerning the following question:
Please excuse the slightly off-topic post...
How do i set up a unix webserver so all accesses to a particular directory (and below) get *handled* by a perl script? (ie, similar to the way java servlet's can act)
For example:
or something to that effect.http://www.domain.com/thedirectory/ => /cgi-bin/path/myscript.pl ('/') http://www.domain.com/thedirectory/foo => /cgi-bin/path/myscript.pl ('/foo') http://www.domain.com/thedirectory/foo/bar => /cgi-bin/path/myscript.pl ('/foo/bar')
Note that i dont want a simple redirection because that changes the url in the address bar, and doesn't give me access to the original path requested. Also, i need to do things like return images and http redirects so just inserting text into a shtml doc isn't likely to work. And, just to make things tricky, i don't have root access to this particular server...
Any comments appreciated!
- ><iper
my JAPH: print"Just another Perl hacker\n"; # ^ look, no space! pretty tricky huh?
|
---|
Back to
Seekers of Perl Wisdom