httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: More help with apache and CGI-Perl
Date Mon, 01 Jul 2002 15:00:32 GMT
John Passaniti wrote:
> The "#!" is only used by Unix (and Unix-like) operating systems.

In this case, the above is completely false.  When executing a script
from a command line, it applies -- when activating a script from within
Apache, the server will emulate the shell behaviour if the
ScriptInterpreterSource directive is set correctly.

> Windows doesn't use this mechanism to associate files to their
> executables.  You can completely ignore the shebang line under Windows
> (because Windows itself ignores it).

But if you do, for CGI scripts to work you'll need to a) use the
same suffix on all scripts (e.g., '.pl') as is registered in Windows
for the interpreter, and b) set ScriptInterpreterSource to 'registry'.
[a] can be a pain if you have unsuffixed files in /cgi-bin/, for
example, or scripts with suffices that aren't registered with Windows.
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message