MRatWork Forum by Mustafa Ramadhan

Language Specific Discussions => Indonesia Users => Topic started by: Wibowo on 2017-04-29, 06:53:44

Title: [SOLVED] Nginx Proxy Real IP module
Post by: Wibowo 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
Title: Re: Nginx Proxy Real IP module
Post by: MRatWork on 2017-04-29, 06:58:49
Periksa file proxy_*.conf di /opt/configs/nginx/conf/globals
Title: Re: Nginx Proxy Real IP module
Post by: Wibowo 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