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

This is a discussion on virtual host to cgi-bin file, perl file is not processed. within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I was trying to create a virtual host pointing to a cgi-bin file written in perl, but ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-26-2005
John
 
Posts: n/a
Default virtual host to cgi-bin file, perl file is not processed.

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
  #2 (permalink)  
Old 01-26-2005
Martin Kissner
 
Posts: n/a
Default Re: virtual host to cgi-bin file, perl file is not processed.

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)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0