Marc Mutz wrote:
> 
> This little script print out all env variables the cgi script gets:
> 
> #!/usr/bin/perl
> 
> # your httpd.conf should have something like this:
> 
> # Alias /perl/  /real/path/to/perl-scripts/
> 
> # <Location /perl>
> # SetHandler  perl-script
> # PerlHandler Apache::Registry
> # PerlSendHeader On
> # Options +ExecCGI
> # </Location>
> 
> print "Content-type: text/html\n\n";
> 
> print "<b>Date: ", scalar localtime, "</b><br>\n";
> 
> print "%ENV: <br>\n", map { "$_ = $ENV{$_} <br>\n" } keys %ENV;
> 
> __END__
> 
> Marc
> 
> --
> Marc Mutz <[EMAIL PROTECTED]>                    http://marc.mutz.com/
> University of Bielefeld, Dep. of Mathematics / Dep. of Physics
> 
> PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)


Mark,

Thanks that say me so much time, I grab HTTP_HOST=domain.com 
split it and bang I got which domain the request came from,
just a quick little counter script and got a full report on
how many hits each domain is getting :)

That worked great, Thanks

Jack

Reply via email to