Koozali.org: home of the SME Server

Stats when hosting a website behind an SME server?

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
Stats when hosting a website behind an SME server?
« 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
...

Offline Boris

  • *
  • 783
  • +0/-0
Stats when hosting a website behind an SME server?
« Reply #1 on: February 07, 2004, 04:51:50 AM »
Disable Proxypass and httpd on the gateway server and use portforwarding for ports 80 and 443 instead?
...

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
Stats when hosting a website behind an SME server?
« Reply #2 on: February 07, 2004, 05:43:45 AM »
Quote from: "Boris"
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.
...

Offline Boris

  • *
  • 783
  • +0/-0
Stats when hosting a website behind an SME server?
« Reply #3 on: February 07, 2004, 10:37:47 AM »
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.
...

knut

Stats when hosting a website behind an SME server?
« Reply #4 on: February 09, 2004, 04:48:53 PM »
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