The DocumentRoot is the same for a CGI script, but when a script is running, the URL is usually something like hotsname/cgi-bin/scriptname so if you refer to myscript.js (note the lack of the leading "/") then apache will try to fetch "myscript.js" from the same directory as the CGI script came from. It will also try to execute it (as it is coming from a CGI script directory).
On 17/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Are you referring to the Document Root in httpd.conf? I still need the document root from the file system, but is there a way that when cgi is used it is fed a different argument? EG ----- Original Message ----- From: Steve Swift Date: Saturday, December 16, 2006 2:04 am Subject: Re: [EMAIL PROTECTED] Address CGI w/ URL and not Path Name To: users@httpd.apache.org > When you use the "C:/directory/file" format your browser is > fetching the > file directly from the filesystem and displaying it as best it > can; your > apache webserver is not involved in the process at all. So there > will be no > execution of the CGI script, as that takes place inside apache. > > On 15/12/06, [EMAIL PROTECTED] wrote: > > > > I have a set of cgi scripts that will only run when addressed > with an ' > > http://type URL' and not the 'C:/directory/file' format. When > I need to > > use cgi Apache produces a 'Save As' Dialog box because the > http server is > > being bypassed. I can't figure out how to rewrite how my cgi > programs are > > addressed. I don't want the Document Root included, I need > the http:// > > format for them to run. > > > > EG > > > > > > -- > Steve Swift > http://www.swiftys.org.uk >
-- Steve Swift http://www.swiftys.org.uk