Apache Server configuration support - virtual host to cgi-bin file, perl file is not processed.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2005 > virtual host to cgi-bin file, perl file is not processed.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author virtual host to cgi-bin file, perl file is not processed.
John

2005-01-26, 6:04 pm

Hi all,

I was trying to create a virtual host pointing to a cgi-bin file
written in perl, but the file is not processed for the perl
interpreter.

the situation:

<VirtualHost *>
ServerName test.mydomain.org
DocumentRoot /Library/WebServer/cgi-bin/test
DirectoryIndex input.pl
</VirtualHost>

On this example the file is read and processed if I access it from
/cgi-bin/ but is not processed if I use the virtual host approach. I
just get the PERL code.

Any solution?
Thanks
John
Martin Kissner

2005-01-26, 6:04 pm

John wrote :
> Hi all,
>
> I was trying to create a virtual host pointing to a cgi-bin file
> written in perl, but the file is not processed for the perl
> interpreter.
>
> the situation:
>
><VirtualHost *>
> ServerName test.mydomain.org
> DocumentRoot /Library/WebServer/cgi-bin/test
> DirectoryIndex input.pl
></VirtualHost>
>
> On this example the file is read and processed if I access it from
> /cgi-bin/ but is not processed if I use the virtual host approach. I
> just get the PERL code.
>


If input.pl is in /cgi-bin/ it hast to be:

<VirtualHost *>
ServerName test.mydomain.org
DocumentRoot /Library/WebServer/cgi-bin/
DirectoryIndex input.pl
</VirtualHost>

If it sits in /Library/WebServer/cgi-bin/test you maybe have to add the
slash at the end (I am not sure about this)

You might also want to add:
ScriptAlias /Library/WebServer/cgi-bin/

HTH

--
Epur Si Muove (Gallileo Gallilei)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com