httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Günther Kastenfrosch" <gkastenfro...@googlemail.com>
Subject [users@httpd] Apache Perl/CGI Question
Date Fri, 09 Jan 2009 15:53:08 GMT
Hi guys.

After googleing for hours I realized my problem ist too specific to
easily find proper solutions on the web. But I'm sure that there's
someone on this list who could help me if there really is a chance.

So here's what I want to do:

We have an development server with a running apache2.2 on windows
server 2003. Perl via CGI is working properly. But: we would like not
to set the path to the perl.exe via shebang-line.

This is mainly because different people are working on the same .pl
file, but want to use different perl executables (5.6, 5.8, 5.10).

I would like to set the interpreter not via a shebang-line but
somewhere in the vhost settings.

I already tried setting setting something like this in ScriptAlias
cgi-bin directory:

> AddHandler myPerlFile .pl
> Action myPerlFile "C:/Perl/bin/perl.exe"

but on calling /cgi-bin/test.pl apache returns:

> The requested URL /Perl/bin/perl.exe/cgi-bin/test.pl was not found on this server.

log entry:

> [Fri Jan 09 16:43:18 2009] [error] [client xx.xx.xx.xx] File does not exist: c:/documentroot/Perl

I'm not sure if this is the way to do what I want to, nor I'm sure
that it's possible.

So my request in one sentence:
Is it possible to set different vhosts to call the same .pl file via
cgi using different perl executables?

Thanks for your help,

Günther

---------------------------------------------------------------------
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