Clustering, Linux

IP forwarder under cluster server on nginx

Tuesday, 15th March 2022

This is little notice for solving problem about clustering server.

geo $allow {
    default 0; 1;

server {
    real_ip_header X-Forwarded-For;

    if ($allow = 0) {
        return 403;

– 192.168.x : range ip for allow access
– 10.1.x : reverse proxy server

After this, ip address from public will delivering to the cluster.

Popular Posts

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *