1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Shared IPs

Discussion in 'XenForo Questions and Support' started by CarpCharacin, Sep 1, 2016.

  1. CarpCharacin

    CarpCharacin Active Member

    My IP was on spam blacklists, so I asked my host to change it to one that wasn't on blacklists, and they did. AFter they did that, it started showing up that all users online were coming from the IP of my site and that all posts were coming from that IP. If I go to shared IPs on any user that has been active since the host tweaked it, it shows myself and my staff and all of the other users who have been active. The host says that they have disabled nginx for my account and that I should waight 34 hours, and it hasn't been 34 hours, but this is bothering me and I want to get it fixed.
     
  2. Jake B.

    Jake B. Well-Known Member

    Sounds like you'll need to contact your host to fix it. Or maybe add this to your config.php file:

    PHP:
    $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
     
  3. CarpCharacin

    CarpCharacin Active Member

    I added that and I think it worked worked. My real IP is showing up, but the IP of the google bot is the IP of the sight. Is there any way to fix the shared IP logs and the post IPs? It is really bugging me.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You would need to remove the data - you can do that in the Logging Options by setting the number of days to 1 now, then set it back to 365 tomorrow (once the log has been cleared by the clean up cron - or you can run the cron manually).
     
  5. CarpCharacin

    CarpCharacin Active Member

    Where is logging options? So I can change it back to 365 after I run the clean up cron?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    It's an option group.

    Yes.
     
  7. CarpCharacin

    CarpCharacin Active Member

    I did it, but the shared IPs from yesterday and today are still there. Is there any way to remove them now, or should I just wait until tomorrow?
     
  8. CarpCharacin

    CarpCharacin Active Member

    Also, what about the IPs of the posts?
     
  9. Jake B.

    Jake B. Well-Known Member

    You can manually run the cron in Tools -> Cron Entries
     
  10. CarpCharacin

    CarpCharacin Active Member

    I did that and it removed most of the shared IPs, but not all. When I click IP on each post on posts that have been made since the host changed the IP, the real IP dosen't show up. I want to fix that.
     
  11. Tracy Perry

    Tracy Perry Well-Known Member

  12. CarpCharacin

    CarpCharacin Active Member

    They said to wait 34 hours and it has not been 34 hours.
     
  13. CarpCharacin

    CarpCharacin Active Member

    There is an error log and it was just when I tried to create an additional tab in notable members. Nothing from the IP. I thold the host that I fixed the problem and to keep nginx, but I haven't heard back from them. I didn't know that they were using it as a reverse proxy, but I asked them. What should I do?
     
  14. Tracy Perry

    Tracy Perry Well-Known Member

    Have patience, and check with them if they have a front end proxy in place and if so, what is the appropriate FORWARD_FOR string.
     
  15. CarpCharacin

    CarpCharacin Active Member

    They said that nginx is no longer running on my account, but I removed the code that I had put in the config.php file and the real IPs stopped showing. I put the code back, and the real IPs show up.
     
  16. Tracy Perry

    Tracy Perry Well-Known Member

    Really?
    Screen Shot 2016-09-03 at 12.55.51 AM.png
     
  17. CarpCharacin

    CarpCharacin Active Member

    That is what they said. They said my domain is no longer handled by nginx.
     
  18. Tracy Perry

    Tracy Perry Well-Known Member

    Well, there is a disconnect somewhere... as you can see from the image, your front end HTTP server returns as nginx. And that was checked (and same results) at different test sites.
     
  19. CarpCharacin

    CarpCharacin Active Member

    They asked if I wanted to change servers. Should I?
     
  20. Tracy Perry

    Tracy Perry Well-Known Member

    That's up to you. If nginx is working (and you don't have cPanel actually controlling Apache as the back end server) the I'd leave it as nginx is a higher performing HTTP server than Apache. BUT, it's very unlikely if you have cPanel that you are only using nginx. Almost all cPanel add-ons I've found use nginx as a reverse proxy and not the primary proxy.
     

Share This Page