httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barth \(John\) Jones" <musicbyba...@alltel.net>
Subject Re: [users@httpd] cgi
Date Sat, 05 Jun 2004 14:05:24 GMT
In the Apache description for the directive, Script InterpreterSource [http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource],
what is meant when they say, 

"The command defined by the registry subkey Shell\ExecCGI\Command or, if it does not exist,
by the subkey Shell\Open\Command is used to open the script file. "?

Also, what's the Windows Registry tree HKEY_CLASSES_ROOT?

Here's the context where those excerpt are found:
Setting ScriptInterpreterSource Registry will cause the Windows Registry tree HKEY_CLASSES_ROOT
to be searched using the script file extension (e.g., .pl) as a search key. The command defined
by the registry subkey Shell\ExecCGI\Command or, if it does not exist, by the subkey Shell\Open\Command
is used to open the script file. If the registry keys cannot be found, Apache falls back to
the behavior of the Script option.

Finally, what does this mean (under the same description; my cgi-bin is ScriptAliased):

Be careful when using ScriptInterpreterSource Registry with ScriptAlias'ed directories, because
Apache will try to execute every file within this directory. 

Thanks

----- Original Message ----- 
From: "Robert Andersson" <robert@profundis.nu>
To: <users@httpd.apache.org>
Sent: Saturday, June 05, 2004 9:16 AM
Subject: Re: [users@httpd] cgi


> Barth (John) Jones wrote:
> > The #!/usr/bin/perl path is just used so it can be run on a Unix system.
> > My understanding is that it's optional when running on Windows according
> > to this site:
> 
> It is ignored when you execute a script from Windows' so-called "shell",
> however...
> 
> > The 'shebang' line is not necessary under Win32. It will be ignored.
> 
> Wrong. Apache's CGI module(s) use it to find the interpreter when attempting
> to execute the script. By default the shebang line must point to the correct
> interpreter, even on Windows. You can set the directive SetInterpreterSource
> to 'Registry' which will cause the interpreter to be looked up in the
> registry instead. The default for this directive is 'Script' (the *nix
> style). See:
>     http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource
> 
> Regards,
> Robert Andersson
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
Mime
View raw message