Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: allun on February 07, 2004, 04:41:56 AM
-
Does anyone know of a workaround or maybe some ProxyPass trick to get proper statistics from an internal webserver?
The situation is that i want to host a site on a second SME box that is behind a gateway SME box. I can get the site hosted on the second box just fine using the apache proxypass module, but the problem is that the second box sees all of it's hits as coming from the gateway box, not the "real" external IP that is accessing the site!
Since i need to get sensible web stats for the site(s) running on the second box, I'm wondering if there is a way to make the gateway machine act like a true transparent proxy so that the original apache headers are preserved and the stats are left unmolested?
Any ideas anyone?
TIA
Allun
-
Disable Proxypass and httpd on the gateway server and use portforwarding for ports 80 and 443 instead?
-
Disable Proxypass and httpd on the gateway server and use portforwarding for ports 80 and 443 instead?
Thanks for the reply Boris - sorry, I should have said that i have another site running on the gateway machine as well....
I have also just clicked to the fact that i am looking at the stats and apache logs on the internal machine, when in fact the gateway machine is still keeping stats for the virtual domain that is being proxied thru to the internal server. So to put it simply, one solution is to just get the stats from the gateway machine....I'd still be interested in any other solutions though.
-
Makes sense. Apache on the gateway still answers to all requiests and log them. After that it serves the page from the local folder or remote (internal) URL.
-
AWStats on the gateway gives you the info you need. I think this is a common solution for your needs. At work we use IIS as a proxy for some BEA Weblogicbases websites and we need to analyse the logfiles on the IIS-server to get the log analysis we need.
Regards
Knut