[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] eprints XFF header



Hi Maher,

I am not aware of anything with EPrints that would prevent you using a standard approach to acheiving Apache logging of client IP addresses when using a load balancer.  There are plenty of guides online giving advice about how to do this, such as:

http://www.loadbalancer.org/blog/apache-and-x-forwarded-for-headers/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.loadbalancer.org%2Fblog%2Fapache-and-x-forwarded-for-headers%2F&data=01%7C01%7C%7C2a94cb31e91b4ed0451808d766889d0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=TK%2BBKYriHNQB9iHLIBBrCGOC0BheeZ1OEonyx3kauZ8%3D&reserved=0>

For the purposes of determining the IP address for the access table in the EPrints database, which logs views of summary/abstract pages and downloads of publication documents, it should determine the originating IP address.  Therefore, if you have the IRStats2 Bazaar plugin, your stats page should accurately reflect from where requests are actually coming.

Regards

David Newman

On 11/11/2019 09:03, Maher Abdellatif Ahmad Qahwash via Eprints-tech wrote:
Hi

Our Eprints (3.4.1) server is behind the F5 LB, and the client IP?s are available in the XFF header. As per our policy requirement, we need to log these IP?s in the apache access log. Can someone guide me on how to do that? Also do the eprints application uses XFF header or not?

Thanks,
Maher



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7C2a94cb31e91b4ed0451808d766889d0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ilUgz94fGxBq8rw7tNzNhe4%2BNWPCAmbeHBxncXM3kAo%3D&reserved=0>
*** EPrints community wiki: http://wiki.eprints.org/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7C2a94cb31e91b4ed0451808d766889d0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=p1B54L2Q9TGlMOOSRWf21hTVtQLw8%2BI%2Fwr22b3nTkCg%3D&reserved=0>
*** EPrints developers Forum: http://forum.eprints.org/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7C2a94cb31e91b4ed0451808d766889d0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2B3Z81wkmwSiodJhZwRoXQvEWZBxWj3qrOGPW6oTXcRI%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20191111/0dfa0cab/attachment.html