Reference

enable frontend

Re-enable a frontend that was stopped with the disable frontend command.

Description Jump to heading

Use the enable frontend command to begin routing traffic to a frontend that had been disabled previously.

Examples Jump to heading

  1. To restart this frontend:

    haproxy
    frontend www
    bind *:80
    default_backend servers
    backend servers
    server s1 192.168.50.20:80
    haproxy
    frontend www
    bind *:80
    default_backend servers
    backend servers
    server s1 192.168.50.20:80
  2. Run the enable frontend command with the name of the frontend:

    nix
    echo "enable frontend www" | \
    sudo socat stdio tcp4-connect:127.0.0.1:9999
    nix
    echo "enable frontend www" | \
    sudo socat stdio tcp4-connect:127.0.0.1:9999

The load balancer marks the frontend with status “OPEN” on the stats page.

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?