On Fri, Mar 15, 2002 at 02:17:15PM -0700, SoloCDM wrote:
> With Apache 1.3.22 on Linux with kernel 2.2.19 is the cgi
> scripts suppose to work at installation time in the cgi-bin
> (/var/www/cgi-bin)?
depends on the intallation and configuration :)
> I went through the settings for ExecCGI,
> AddHandler, and Directory. Everything is activated and pointing
> to the directory for the cgi-bin, except for "Options -Indexes
> FollowSymLinks MultiViews." What is missing?
you need to have ExecCGI in as an option, if you don't
already you have to make sure that apache knows that
the cgi-bin directory contains scripts, either by
ScriptAlias'ing it (the most common way), using ForceMimeType
inside a LocationMatch or adding a handler (use AddHandler)
for an extension you'd like to recognise.
This should just work:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory /var/www/cgi-bin/>
Options ExecCGI
</Directory>
make sure you place that _after_ any Directory context for
"/"
> I noticed test-cgi in the cgi-bin. If it can be used for testing
> Apache's cgi-bin, how would I make the test?
not sure what test-cgi is, if it's a standard cgi, and locations
are standard use http://yourhost/cgi-bin/test-cgi , apache ships
with the "printenv" cgi as standard, it's good. Try
http://yourhost/cgi-bin/printenv
--
colmmacc at redbrick.dcu.iewebmaster at redbrick.dcu.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!