K
Kostas Hatzikokolakis
Hi,
I want to set up apache to use the perl interpreter automatically for
all .pl files, without the need to have a #!/path/to/perl directive in
each file. This is beacause I want to use a winows machine to test
some scripts created in linux, thus havind #!/usr/bin/perl instead of
#!c:\Perl\bin\perl.exe. I tried the following in httpd.conf
AddType application/x-httpd-perl .pl
ScriptAlias /_pl/ "c:/perl/bin/"
Action application/x-httpd-perl "/_pl/perl.exe"
that should normaly do the trick (i configured php similarly) but I
get the following error:
[Sat Oct 18 15:22:16 2003] [error] [client 127.0.0.1] Premature end of
script headers: perl.exe
Does anyone have a solution to this problem?
Thanks in advance.
Kostas Chatzikokolakis
I want to set up apache to use the perl interpreter automatically for
all .pl files, without the need to have a #!/path/to/perl directive in
each file. This is beacause I want to use a winows machine to test
some scripts created in linux, thus havind #!/usr/bin/perl instead of
#!c:\Perl\bin\perl.exe. I tried the following in httpd.conf
AddType application/x-httpd-perl .pl
ScriptAlias /_pl/ "c:/perl/bin/"
Action application/x-httpd-perl "/_pl/perl.exe"
that should normaly do the trick (i configured php similarly) but I
get the following error:
[Sat Oct 18 15:22:16 2003] [error] [client 127.0.0.1] Premature end of
script headers: perl.exe
Does anyone have a solution to this problem?
Thanks in advance.
Kostas Chatzikokolakis