Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to build a reverse-proxy setup for static files using Apache and Nginx. I want to use it for Plesk. Normally, Plesk gets the bandwidth information from the Apache logs. Is it possible to calculate the used bandwidth with a reverse-proxy setup?

share|improve this question
up vote 0 down vote accepted

Well, i think the best way is creating nginx logs with the same log_format in the same file location per virtual host and disable apache access log per virtual host (or store it to another file. I believe it can be set by editing vhost.conf file).

More simply - you can make some wrapper script, which would be move standart apache access_log file for example to access_log.1 and nginx_access_log file to access_log before plesk statistics script execution.

Base idea - nginx already have all traffic information and this information must be stored in default location (vhosts access_log) by the same log format.

share|improve this answer
That's what I call a practical solution! Thank you very much. – Davey Nov 2 '11 at 21:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.