You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tib <ti...@gmail.com> on 2011/05/08 06:01:59 UTC

[users@httpd] mod_status + mod_rewrite "Total Traffic" problem

Hi,
I've just noticed that when a request is rewrited by mod_rewrite, its
traffic won't be accounted into "Total Traffic" by mod_status.

How would I configure Apache to correctly account all traffics
including those from rewrited URLs, or is this really a bug?

I'm using Apache/2.0.63 on freebsd (stock ports), experiments are
preformed in the following way:

dd if=/dev/urandom of=10m_file bs=1048576 count=10
cat > .htaccess
RewriteEngine On
RewriteRule ^10m_rw$ 10_file
^D

curl -v 'http://192.168.1.1/server-status?auto'  # take a note of
Total kBytes field
curl -v 'http://192.168.1.1/10m_file' -o 10m_tmp
curl -v 'http://192.168.1.1/server-status?auto'  # Total kBytes field
do increment about ~10MB
curl -v 'http://192.168.1.1/10m_rw' -o 10m_tmp
curl -v 'http://192.168.1.1/server-status?auto'  # Total kBytes field
only increases a few hundred kB's

Hope somebody know a cure, thanks!
Tib

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org