LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CGI and Apache (https://www.linuxquestions.org/questions/linux-software-2/cgi-and-apache-286533/)

Sevoma 02-05-2005 08:02 AM

CGI and Apache
 
I have apache 2 set up on my server and I put a folder cgi-bin in the document root with my cgi scripts. When I go to the file it gives me a 404, and I have the correct url. When I go to the folder it will not allow me to view it. My configuration file is blank and my permissions are okay. I want to be able to execute cgi and pl files. I have perl installed and I thin the problem is in my configuation file.

Thanks for any help, Sevoma

Verylinux 02-05-2005 08:21 AM

I think below article will be helpful:

RedHat's httpd-2.0.46-44 Reference Manual

Your can read it from my website: verylinux.com!

Regards

Sevoma 02-05-2005 08:30 AM

Thanks, your site was very helpful.
So I would use this
<Directory /var/www/cgi-bin>
ExecCGI
</Directory>
Is that correct to enable it?

I think I have to install this also, right? libapache2-mod-scgi

Verylinux 02-05-2005 08:40 AM

Have your add this directive:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

Sevoma 02-05-2005 09:07 AM

I get
"Not Found

The requested URL /cgi-bin/nph-proxy.cgi was not found on this server."

Verylinux 02-05-2005 09:20 AM

Note that if you include a trailing / on the url-path then the server will require a trailing / in order to expand the alias.
That is, if you use Alias /cgi-bin/ "/var/www/cgi-bin/" then the url /cgi-bin will not be aliased.

Sevoma 02-05-2005 09:33 AM

It still doesn't work...

Sevoma 02-06-2005 05:55 PM

can somebody please help me?


All times are GMT -5. The time now is 04:15 PM.