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 |
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 |
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 |
Have your add this directive:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" |
I get
"Not Found The requested URL /cgi-bin/nph-proxy.cgi was not found on this server." |
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. |
It still doesn't work...
|
can somebody please help me?
|
All times are GMT -5. The time now is 04:15 PM. |