nginx-config - 如何从检查网络标头中隐藏远程地址。从 nginx 配置
问题描述
我的 IP 地址 Web 应用程序显示在检查的网络标头中。出于安全目的,我想隐藏它们。我需要在 nginx 的配置中设置什么属性?
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
real_ip_header X-Forwarded-For;
}
我尝试了上述配置脚本,但远程地址变得相同。
解决方案
推荐阅读
- oracle - 如何找到oracle db的数据大小?
- python - 使用 spacy 派生的数值数据,TruncatedSVD 和 XGBClassifier 管道的拟合永无止境
- javascript - 无法在 Draftjs 编辑器中居中文本块
- android - 为什么我不能在 Android Studio 的 Google 地图中添加标记?
- mysql - MySQL查询以替换特定字符后的字符
- gstreamer - 通过 viagst-rtsp-server 记录和处理 RTSP 流
- python - 每次显示获胜者文本而不是重新启动后,游戏都会崩溃
- css - 如何在href a标签和文本之间放置空格
- reactjs - React Typescript - 即使设置了最小值和最大值,Math.random 也会给出错误的结果
- r - data.table 'by' 中的条件表达式