Skip to main content

Mod_Sec Detect Server IP

Comments

6 comments

  • Jcats
    Hello, This is most likely because nginx is being used as a reverse proxy so its sitting in front of Apache on port 80, when the request comes in, its making it look like its coming from your server IP since its being forwarded from Nginx. Your apache access logs are most likely flooded with requests from your server IP(Nginx) so essentially anyone brute forcing or failing to log in is basically all doing it from your server IP and resulting in ALL requests being blocked. You need to implement this into Nginx:
    0
  • mgilank
    Hi, i got it work when install mod_rpaf, now the mod_sec work well. but i got other issue. i used LiveZilla as web chat and it's desktop client tell server ip when visitor come. So i make simple php script
    ; echo"
    "; echo $_SERVER["SERVER_ADDR">; echo"
    "; echo $_SERVER["HTTP_X_FORWARDED_FOR">; ?>

    That 3 code above showing my server ip. what is wrong? Thanks!
    0
  • Jcats
    Not sure, still seems like you have the same problem. Did you try
    0
  • mgilank
    Not sure, still seems like you have the same problem. Did you try ; it showed visitor ip. How to solve this? Thanks!
    0
  • Jcats
    Sorry you will have to better explain what you mean when you say
    when i access to that script into my client ip it show all of that is 12.12.12.12

    0
  • cPanelMichael
    Hello :) Please also keep in mind that Nginx is not natively supported by cPanel, so workarounds to these types of issues typically come from users with similar environments instead of staff. Thank you.
    0

Please sign in to leave a comment.