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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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) |