The architecture mode is nginx -> haproxy -> apache
How does haproxy get the real IP passed by nginx?
淡淡烟草味2017-05-16 17:30:13
Of course nginx adds a field to the http request header and forwards the real address to the backend. What are you thinking about?
仅有的幸福2017-05-16 17:30:13
It’s very simple. Just add the following command in the configuration options
option forwardfor except 127.0.0.1