Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problem with mod_remoteip

Discussion in 'General Discussion' started by feday2, Apr 5, 2016.

  1. feday2

    feday2 Registered

    Joined:
    Apr 5, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kiev, Ukraine
    cPanel Access Level:
    Root Administrator
    Hi

    I have Cpanel + Apache 2.4 + Nginx
    mod_remoteip not work correctly. In logs I see the real client IP addr and the IP addr of my cpanel server (nginx). (As i understand - The nginx write to log real client IP )

    In httpd.conf for LogFormat i change %h to %a (not resolve problem)

    # httpd -M | grep -i remoteip
    remoteip_module (shared)

    Settings of remoteip:
    RemoteIPHeader X-Real-IP
    RemoteIPInternalProxy x.x.x.x (x.x.x.x - it is the address in access logs)
    RemoteIPInternalProxy 127.0.0.1
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,242
    Likes Received:
    1,940
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. feday2

    feday2 Registered

    Joined:
    Apr 5, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kiev, Ukraine
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice