How does haproxy get the user's real IP sent from nginx?
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:28:13
0
2
1014

The architecture mode is nginx -> haproxy -> apache

How does haproxy get the real IP passed by nginx?

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
淡淡烟草味

Of course nginx adds a field to the http request header and forwards the real address to the backend. What are you thinking about?

仅有的幸福

It’s very simple. Just add the following command in the configuration options
option forwardfor except 127.0.0.1

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!