Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 1996 13:30:05 -0500
From:      "Bill Campbell" <campbb@d-e.pvt.k12.nj.us>
To:        questions@freefall.freebsd.org
Subject:   Re: CERN httpd and CGI
Message-ID:  <1A7F77F4C37@d-e.pvt.k12.nj.us>

next in thread | raw e-mail | index | archive | help
On Fri, 3 May 1996, Benjamin Tomhave wrote:

> Howdy!
>
> I'm having problems getting CGI applications to run on my web pages
> on my FreeBSD 2.1 system.  I have the CERN httpd web daemon up and
> running via the available binaries.  Pages work fine, but I cannot
> get any CGI apps. to process.  Any ideas or suggestions anyone might
> have would be great!

I have not had any problems with CERN httpd
so far so I don't have a lot of trouble-shooting expience with it.
However, here is a (possibly to) simple suggestion.  Make sure that
you are putting your cgi scripts in the directory specified in your
httpd.conf (often found at /usr/local/etc/httpd.conf).  The line to
look for is:

Exec     /cgi-bin/*     /your/script/directory/*

/your/script/directory is an absolute path from the real root dir of
your system not the "fake" root dir that your web pages live under
(as set by "Pass  /*  /your/URL/dir")  Also note the *'s at the end
of the both paths in the Exec statement.  I believe they are
important. When you call your script from a web page the reference to
/cgi-bin/whatever will execute the script at 
/your/script/directory/whatever (assuming the Exec line above.)


*---------
* Bill Campbell                   email: campbb@d-e.pvt.k12.nj.us
* Dwight-Englewood School         phone: 201-569-9500 ext 3206
* 315 E. Palisade Avenue
* Englewood, New Jersey  07631
* USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1A7F77F4C37>