Jason S. on Thu, 26 Aug 1999 09:51:37 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [Plug] Simple CGI question (featuring RH6.0 and Apache 1.3)


If you want to scatter cgi scripts outside of your /cgi-bin/ have a 
look at the AddHandler directive.  Otherwise, setup a cgi-bin and 
put your cgi's in there.

# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
#
# To use server-parsed HTML files
#
#AddType text/html .shtml
#AddHandler server-parsed .shtml

ScriptAlias /cgi-bin/ "/export/home/htdocs/cgi-bin/"
<Directory "/export/home/htdocs/cgi-bin">
	AllowOverride None
	Options None
	Order allow,deny
	Allow from all
</Directory>


J.

When I grow up, I wanna be more like me.
I had a clue. I didn't like it. I took it back and exchanged it for an
attitude.  

On Wed, 25 Aug 1999, Tracy Nelson wrote:

> I've just started playing with Apache, and I can't seem to get CGI scripts
> to work.  I have installed a simple one (the canonical "Hello, world!"
> example from cgi101.com) in the http root directory (/home/httpd/htm).  I
> can access the script just fine, but it doesn't execute -- I just get the
> text from the script.  I can run it from the command line, and I can link to
> it from a web page, but it never executes.  I looked through the httpd.conf
> script, but I didn't see anything obvious there (like
> "PutCGIScriptsHere=..." ;).  I've read through the on-line docs that came
> with Apache and I didn't see anything there either.
> 
> Is there a good beginner's CGI book or web site anywhere?  I'm going through
> CGI 101 on the cgi101.com web site, but all they say in this case is "ask
> your webmaster".
> 
> Thanks!
> -- Tracy Nelson
> 
> 
> _______________________________________________
> Plug maillist  -  Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug