You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Maurice McCabe <mm...@orbsoft.com> on 2003/06/20 12:07:35 UTC

Help with CGI mode and relative paths

I have a web page which works under mod_perl but does not under CGI.

In the following example, the fphover.class applet works in the first case
but can't be found in the second case (using CGI):
http://orbsoft.com/classic-leather/Dealers.htm
http://orbsoft.com/cgi-bin/embpcgi.pl/classic-leather/Dealers.htm

Is there some way to tell Embperl about relative paths or to ignore non-html
files? I have tried setting EMBPERL_PATH and EMBPERL_URIMATCH with no
success.

I am using Embperl 1.3.4 and Perl 5.6.0

Any help would be very much appreciated. I have tried several approaches and
have not been able to work it out.

Maurice


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Help with CGI mode and relative paths

Posted by Gerald Richter <ri...@ecos.de>.
>
> In the following example, the fphover.class applet works in the first case
> but can't be found in the second case (using CGI):
> http://orbsoft.com/classic-leather/Dealers.htm
> http://orbsoft.com/cgi-bin/embpcgi.pl/classic-leather/Dealers.htm
>
> Is there some way to tell Embperl about relative paths or to ignore
non-html
> files? I have tried setting EMBPERL_PATH and EMBPERL_URIMATCH with no
> success.
>

With EMBPERL_URIMATCH you can tell Embperl to ignore non html files, but
your class file will be fetched from the wrong location, because you have
the /cgi-bin/embpcgi.pl in front. If your cgi runs on apache try to use the
Action config directive, see

http://perl.apache.org/embperl/pod/doc/Config.-page-1-.htm#sect_2

If you can't do this, you have to correct your path, so it points to the
right loation without the cgi-bin/embpcgi.pl in front

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org