httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tib <tiberius.t...@gmail.com>
Subject [users@httpd] mod_status + mod_rewrite "Total Traffic" problem
Date Sun, 08 May 2011 04:01:59 GMT
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


Mime
View raw message