|
From: Jonathan S. <gel...@ge...> - 2002-03-07 09:10:01
|
On Wed, 6 Mar 2002, Sam Smith wrote: > 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). > > Ah, got ya, *virtual hosts* on the same server ... OK. /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent | |