test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • myonja Friend
    #169013

    I ran into an issue where all of the people leaving comments were showing the same ip address. The problem apparently stems from hosting the site in a cloud environment where the ip addresses of the load balancer’s where being picked up instead of the visitors’s.

    I found that i had to change the Remote_Addr section in the comments.php file in both the adm section and the component section. steps as follows:

    Global search for $_SERVER [“REMOTE_ADDR”]

    and because i use an ssl cert replace it with $_SERVER [“HTTP_X_FORWARDED_FOR”]

    apparently if i did not use a ssl i would have to replace it with $_SERVER[‘HTTP_X_CLUSTER_CLIENT_IP’]

    Both of the files were in the controlers folders.

    Hope this helps.
    Rich

    Manos Moderator
    #415301

    Hi!

    Thank you for letting us know about this!! I guess that other members will benefit from that info!!!

    Regards

    Manos

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Manos 13 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum