> i have got apache_1.3.12 working on my machine, but if i try to open any
> cgi files in navigator all i see is the code. here is what is in my
> httpd.conf file:
>
> ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
>
> #
> # "/home/httpd/cgi-bin" should be changed to whatever your ScriptAliased
>
> # CGI directory exists, if you have that configured.
> #
> <Directory "/home/httpd/cgi-bin">
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
>
> is that all that has to be done? when i try to view the cgi file in
> netscape i go File -> Open Page...-> Choose File and select the .cgi
> file i want to see. then click the 'View in Navigator' button. Is this
> wrong? is there some other way to view .cgi files?
Apache can only control what goes though it. Try typing this in the URL or
Location window
http://127.0.0.1/cgi-bin/script.cgi
Where script.cgi is your cgi script you create
When you open it though "Open Page...->Choose File" you are bypassing the
web server and directly opening the file from your file system, it would be
the same as if you opened the file in `vi` or `emac`. These programs don't
contact your web server (Apache) and it (Apache) never give it a chance to
execute it (the cgi program)
Also make sure you do a
`chmod 755 /usr/local/apache/cgi-bin/script.cgi` to make sure the
execute/read bit is set for the program.
Jack
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs