in reply to Short-circuited CGI Link

The myserver.com part is what allows your browser to get to the web server in question. Apache then can translate, but maybe if you set the default document (usually index.html) to be that cgi file, it would work. But there's no way to do it using Perl directly -- the server first has to know what script to run against before it can run said script.

----Asim, known to some as Woodrow.

Replies are listed 'Best First'.
Re: Re: Short-circuited CGI Link
by nardo (Friar) on Jun 13, 2001 at 21:38 UTC
    You can use the DirectoryIndex apache directive to set the default document. Something like:
    DirectoryIndex index.html index.htm index.cgi
    would execute index.cgi (assuming apache has been configured to execute .cgi files (Options ExecCGI)) if index.html and index.htm can not be found. The index.cgi could then check the QUERY_STRING to determine whether the person wants to execute script.pl or get the default html page.