Real IP
October 01, 2020 03:15AM
Saya menggunakan nginx sebagi LB,
Ip client yang saya dapat adalah IP nya LB bukan real ip client


berikut config nginx saya

location /evshop-mid/Sell {

limit_except POST {
deny all;
}
#rewrite /evshop/(.*) /$1 break;
add_header X-Frame-Options "DENY";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $remote_addr;
proxy_pass http://sell-mid/evshop-devl-mid/Sell;
}


Mohon masukannya teman-teman smua
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready