Skip to content

Quick notes to enable the original/real ip forwarding when a client make a request to the HAProxy and balanced to one or several nginx servers.

License

Notifications You must be signed in to change notification settings

danifernandezs/RequestIP-HAProxy-to-Nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IP real de la request (Del cliente) desde HAProxy (Como balanceador de carga) hacia Nginx

Notas rápidas para habilitar el reenvio de la ip original/real del cliente al hacer una request que es entregada por HAProxy hacia uno o varios nginx.

Se configura el forward-for y send-proxy del lado HAProxy Se configura la ip del balanceador y el proxy-protocol del lado nginx

Modificaciones en HAProxy

Modificaciones en Nginx

Real Request IP (Client) From HAProxy(as load balancer) to Nginx

Quick notes to enable the original/real ip forwarding when a client make a request to the HAProxy and balanced to one or several nginx.

From the HAProxy side, enable the forward-for and the send-proxy From nginx side, add the balancer ip and enable the proxy-protocol

HAProxy side

Nginx servers side

LICENCIA/LICENSE

License Logo

Todo el repositorio queda bajo licencia Creative Commons Attribution-ShareAlike 4.0 International License.

Se puede revisar el fichero de licencia para más información.

All repo are under Creative Commons Attribution-ShareAlike 4.0 International License.

You can see the License file for more information.

About

Quick notes to enable the original/real ip forwarding when a client make a request to the HAProxy and balanced to one or several nginx servers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published