Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ improvement for faq_98 / Using Apache Module RPAF #11281

Closed
bohnelang opened this issue Jan 26, 2017 · 1 comment
Closed

FAQ improvement for faq_98 / Using Apache Module RPAF #11281

bohnelang opened this issue Jan 26, 2017 · 1 comment
Labels
c: Website matomo.org For issues related to our matomo.org website. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone

Comments

@bohnelang
Copy link

bohnelang commented Jan 26, 2017

https://piwik.org/faq/how-to-install/#faq_98

How do I configure Piwik when the server is installed behind a proxy?

Second way:

Running piwik on an Apache web server behind a reverse-proxy one can use the RPAF Apache module to replace remote address by HTTP_X_FORWARDED_FOR address.

On Debian/Ubuntu:
apt-get install libapache2-mod-rpaf
edit the /etc/apache2/mods-enabled/rpaf.conf

<IfModule rpaf_module>
        RPAFenable                On
        RPAFsethostname      On
        RPAFproxy_ips           IP-OF-YOUR-PROXY-SERVER
        RPAFheader                X-Forwarded-For
</IfModule>

apachectl restart

More information about RPAF: https://github.com/gnif/mod_rpaf

Apache 2.4 and 2.5:
https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

@mattab
Copy link
Member

mattab commented Feb 21, 2017

Hi @bohnelang

thanks for the note. Added to the FAQ an alternative solution on Apache 2.4 and Apache 2.5 is to use mod_remoteip to override the client IP with the IP as provided by a proxy or load balancer. Then you won’t need to specify these Piwik config settings.

@mattab mattab closed this as completed Feb 21, 2017
@mattab mattab added c: Website matomo.org For issues related to our matomo.org website. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Feb 21, 2017
@mattab mattab added this to the 3.0.2 milestone Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Website matomo.org For issues related to our matomo.org website. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

2 participants