httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: CGI and ScriptAlias Alternatives
Date Tue, 04 Jun 2002 02:33:02 GMT
Ron Wingfield wrote:

> I'm having difficulty executing the counter.pl in the common directory.  
> If I add a ScriptAlias, e.g.,
>  
>   ScriptAlias /cgi-bin/   "/www/cgi-bin/perl/"
>  
> to the httpd.conf container for the VirtualHost, apples.com.
>  
> 
> After execution of the index.htm file in the host's DocumentRoot 
> directory, /www/vhosts/apples.com (as directed in the httpd.conf file), 
> the error-log message contains:  "invalid CGI ref 
> "www/cgi-bin/perl/counter.pl".  

This sounds conspicuously like you are using SSI, not direct CGI.  The 
error message is from the SSI.

Start by requesting the cgi script directly (as in 
http://example.com/cgi-bin/perl/counter.pl) and make sure that works.

Once that works, then try to get it to work in SSI.  Forget about "#exec 
cgi".  You should never use that.  Instead, use <!--#include 
virtual="/cgi-bin/perl/counter.pl" -->.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message