|
From: Jonathan S. <gel...@ge...> - 2002-03-06 20:49:17
|
On Wed, 6 Mar 2002, Sam Smith wrote:
>
> It would also be a nice feature to be able to use the same script for
> multiple hosts by including the HTTP_HOST value somewhere in the
> encoding.
>
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.
so that one isn't going to float. And for the alternative 'include
virtual':
The URL cannot contain a scheme or hostname, only a path and an
optional query string. If it does not begin with a slash (/) then
it is taken to be relative to the current document.
So neither will that. Of course this could be entirely down to the Apache
SSI implementation and this might work on a whole load of servers that I
don't have access to test right now, or there might be an alternative SSI
implementation for Apache that does behave like this or .. or ..
Then I went down a blind alley and started to type :
Anyhow in principle you could do what you suggest now if your server
*does* support the inclusion of remote CGI programs but otherwise
behaves similarly to Apache (of course this might work for all servers
but again I have no way of testing ) by using extra path information
i.e you do :
And then tested what I had been thinking and discovered it was totally
crack induced and untrue ...
Based on these observations I don't actually believe a remote counter
that uses SSI is going to work, of course I would be delighted if someone
could prove me wrong ...
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
|