|
From: Sam S. <sa...@us...> - 2002-03-06 23:02:32
|
On Wed, 6 Mar 2002, Jonathan Stowe wrote:
> It just occured to me that the HTTP_HOST wouldn't work because that will
> always be the HTTP_HOST of the server that the counter runs on, then I
> went to test what the environment of a CGI program run from an shtml page
> on another host would look like and it wouldn't run .... Upon reading the
> Apache documentation I discover that for 'exec cgi':
> If the path does not begin with a (/), then it is taken to be
> relative to the current document.
Unless the files are in a place accessible by all virtual hosts?
Which, if we only wanted one copy of the script, they would have to be.
Either way, encoding the Hostname in the name of the file is probably a good
idea as it allows for multiple servers to write their counters to the same directory (and
only have one dir writable by the webserver rather than more).
Sam
--
Conformity: When People are Free to Do as They Please, They Usually
Imitate Each Other
|