LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   running cgi scripts in other directories (https://www.linuxquestions.org/questions/linux-software-2/running-cgi-scripts-in-other-directories-93182/)

init-5 09-15-2003 06:32 PM

running cgi scripts in other directories
 
Hi everybody,
I wanted to know if I could run CGI-Perl scripts in a directory other than the /cgi-bin directory. The directory structure of my webserver is something like this -

...
...
/cgi-bin
/httpdocs
/httpsdocs
...
...

I wanted to know if I could execute CGI-Perl scripts inside a sub-directory under /httpdocs

For instance - /httpdocs/scripts/try.cgi

The URL - http://www.domain.com/ - points to the /httpdocs directory and the URL - http://www.domain.com/cgi-bin/ - points to the /cgi-bin directory.

Right now I can only run scripts in the /cgi-bin directory.

Thank You.

unSpawn 09-16-2003 05:56 AM

//Please don't crosspost. It's bad netiquette, a waste of time for LQ members and not respectful towards those whose resources you're using. The fact your question wasn't answered yesterday doesn't give you any right to crosspost. Bump the thread if you have to, but better try being patient. If you're impatient or need it really quick, consider supporting the Linux case by hiring a local Linux guru.

That said, it's an Apache thing. Look in httpd.conf for how the container for the cgi-bin directory was set up with ExecCGI.

init-5 09-16-2003 03:01 PM

sorry for the cross post. guess i was a bit impatient. anyway, for a college student, hiring a professional to do a job isn't feasible.

anyways, my mistake.


All times are GMT -5. The time now is 05:02 AM.