Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的卷曲脚本:
curl -H "HTTP_X_REAL_IP: ip" "domain"
这是我的服务器环境:
> 'HTTP_ACCEPT': '*/*', 'SERVER_PORT': '9646', 'REMOTE_PORT': '55278', > 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'gunicorn/0.13.4', > 'HTTP_HTTP_X_REAL_IP': '0.0.0.0',
“HTTP_”添加在 PHP 引擎在 HTTP 请求期间收到的每个标头名称的前面。要使用的正确标头名称是“X-Real-IP”。