[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] A CGI Dispatcher



At 11:56 AM -0600 3/29/00, David Steffen wrote:
>Friends:
>
>   I'd like to put out the appended script for comment.  The
>motivation for writing it was primarily as an illustration of how one
>uses one master CGI as a dispatcher to prevent the problems which
>come from having multiple MacPerl CGIs on a public web server, and
>immediately the request from Philip Thompson for a way to allow
>students to execute Perl CGIs on a Mac server without having to
>convert them to the MacPerl "CGI Script" mini-application.
>
>   The one thing one needs to do to use this master CGI is to alter
>the URL by which you call it.  Where you might normally have a URL
>like:
>
>http://example.com/cgi-bin/myscript.cgi
>
>...using this dispatcher, you have:
>
>http://example.com/cgi-bin/dispatcher.cgi$myscript.cgi

Maybe I'm wrong, but couldn't one work around this problem with aliases and
a little more cleverness in the dispatcher?

That is, one should be able to make an alias to dispatcher.cgi called
"myscript.cgi".  I'm probably wrong about this, but one should be able to
tell if the script was called by 'dispatcher.cgi' or by 'myscript.cgi',
yes?  Or is that usually subsumed by the CGI interface (which I don't know
nearly enough about to blabbering about).

-Jeff Lowrey



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org