Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

upstream mft_proxy {
    ip_hash;
    server <SERVERNAME or SERVER IP>:5000;
    keepalive 10;
}

server {
listen <SERVERNAME or SERVER IP>::80 default_server;

location / {
        try_files $uri $uri/ /index.html;
root "/var/www/localhost/htdocs";
}

    location /service/ {
      proxy_pass      http://mft_proxy/;
    }

# You may need this to prevent return 404 recursion.
location = /404.html {
internal;
}
}

...

Panel

vrrp_instance VI_1 {
        # state MASTER #      # This setting must be comment for Backup Mode
        state BACKUP #    # This setting will be uncommented for the Backup Node
        interface eth1
        virtual_router_id 51
        priority 255
        advert_int 1
        authentication {
              auth_type PASS
              auth_pass 12345
        }
        virtual_ipaddress {
              192.168.56.100/24dev eth1 label eth1:1
        }
}

Checking the failover

In order to see whether the configuration was successful, stop one of the the mft server, and validate that the VIP interface is moving to the other host.

...