Quote:
Originally Posted by TenTenths
|
I found that link within 5 seconds google search before I posted the question on this forum and the article doesnt help in any way. But sticking to that article I have the following:
httpd works without a configuration file. Default is /etc/httpd.conf
I tried with and without a config. I already posted earlier what I had in the config. Checked.
httpd expects it's CGI script files to be in the subdirectory cgi-bin under main web directory set by options -h (default is /www, so /www/cgi-bin).
I also have the root of the webserve at /wwww and the cgi subdirectory at /www/cgi-bin. Checked.
The CGI script files must also have permission to be executed (min mode 700).
I set the permission for the whole www folder to 777. Checked.
So then in the folder /www/cgi-bin I have a file called testcgi with the following content:
Code:
#!/bin/sh
# disable filename globbing
set -f
echo Content-type: text/plain
echo
echo CGI/1.0 test script report:
echo
echo argc is $#. argv is "$*".
echo
echo SERVER_SOFTWARE = $SERVER_SOFTWARE
echo SERVER_NAME = $SERVER_NAME
Then I try to access the webserver from my host machine with:
http://192.168.10.32 and I get the index.html webpage. So far so good. Now I try to access the cgi script with
http://192.168.10.32/cgi-bin/testcgi without having any etc/httpd.conf and I get in the browser:
Code:
404 Not Found
The requested URL was not found
What happens if I do have the config I already described in my previous post.
The article you gave doesnt say how to activate cgi which implies the cgi is working by default by running the httpd server.
You signature says you are a RHCT and have 15 y of experience with linux. I am sure this problem should be trivial for you.