Skip to content

proxy_protocol on short url visit remote_addr is 127.0.0.1? #1893

Discussion options

You must be logged in to vote

I have resolved the problem
location ~ .php$ {} block add fastcgi_param, and set REMOTE_ADDR、HTTP_X_FORWARDED_FOR

fastcgi_param REMOTE_ADDR $proxy_protocol_addr;
fastcgi_param HTTP_X_FORWARDED_FOR $proxy_protocol_addr;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by acelaya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1892 on October 10, 2023 05:53.