Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-05-27, 00:39:59

Author Topic: [SOLVED] Nginx Proxy Real IP module  (Read 83 times)

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
[SOLVED] Nginx Proxy Real IP module
« on: 2017-04-29, 06:53:44 »
semenjak pakai nginxproxy dengan modifikasi sesuai yang pernah saya tanyakan sebelumnya, kok apache malah mendeteksi kalo akses web adalah dari IP internal ya?

misalnya di whmcs, ip yang mengakses whmcs terdeteksi ip internal vps, bukan ip public dari visitor

"This order form is provided in a secure environment and to help protect against fraud your current IP address (10.15.0.6) is being logged."

untuk set real ip nginx proxy kan perlu directive
set_real_ip_from ; real_ip_header ; dan real_ip_recursive

ini diletakkan dimana ya kalo kloxomr dengan nginxproxy

terima kasih
« Last Edit: 2017-04-29, 07:13:37 by Wibowo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,487
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Nginx Proxy Real IP module
« Reply #1 on: 2017-04-29, 06:58:49 »
Periksa file proxy_*.conf di /opt/configs/nginx/conf/globals
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Nginx Proxy Real IP module
« Reply #2 on: 2017-04-29, 07:13:02 »
sudah pak
ternyata konfigurasi untuk apache mod_remoteip belum ada

jadi saya cuma membuat konfig baru /etc/httpd/conf.modules.d/mod_remoteip.conf
lalu isinya

Code: [Select]
RemoteIPInternalProxy 10.15.0.6
RemoteIPHeader X-Real-IP

dan memastikan module mod_remoteip sudah di load oleh /etc/httpd/conf.modules.d/00-base.conf

solved
terima kasih pak

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.047 seconds with 18 queries.

web stats analysis