Dietro lb.selif.org ci sono tre container uguali. nginx, configurato da arx, passa le richieste a turno: ricarica la pagina e cambia chi risponde.
Behind lb.selif.org there are three identical containers. nginx, configured by arx, hands requests to each in turn: reload the page and a different one answers.
| BackendBackend | backend-2 |
|---|---|
| ContainerContainer | 30b115c764ba |
| Il tuo IP, passato da arxYour IP, passed on by arx | 216.73.217.6 |
| Chi si collega al containerWho connects to the container | 172.18.0.1 |
| Ora del container (UTC)Container time (UTC) | 2026-10-04 22:02:34 |
Il container non vede te: vede nginx di arx, che arriva dalla rete di Docker. Il tuo IP glielo passa arx nell'header X-Real-IP.
The container does not see you: it sees arx's nginx, coming from the Docker network. arx passes your IP along in the X-Real-IP header.
upstream con i tre backend e il metodo round robin: uno a testa, in ordine.keepalive), invece di aprirne una nuova a ogni richiesta.127.0.0.1: da internet si arriva a loro solo passando da arx.upstream group with the three backends and the round robin method: one each, in order.keepalive) instead of opening a new one for every request.127.0.0.1 only: from the internet you reach them only through arx.for i in 1 2 3 4 5 6; do curl -s https://lb.selif.org/name; done
Stampa i tre nomi a turno: backend-1, backend-2, backend-3, e di nuovo da capo.
It prints the three names in turn: backend-1, backend-2, backend-3, then over again.