Tracking external websites to piwik instance located in internal network

Hi all,

to prepare an infrastructure to test the following will just take me too much time, so i wanted to ask if the following gonna work out
as expected:

in the apache vhost config
RewriteEngine On
RewriteRule ^/tracking.php$ /forwardpiwik [L,PT]
ProxyPass /forwardpiwik http://hostinmylan/piwik/piwik.php
ProxyPassReverse /forwardpiwik http://hostinmylan/piwik/piwik.php

We have a front-apache server and the piwik instance is hosted in the internal network. Although
tracking should work for sites exposed via our external ip using the javascript api.

This should ensure that only “piwik.php” is serviced and nothing else can be reached via the public internet.

If the above holds…
do i have to configure the “header” setting at the piwik server? (HTTP_X_FORWARDED_FOR)

I’m afraid you will have to test this one…