阿里云文档 2024-12-26

Nginx获取客户端真实IP

通过在业务服务器前端部署支持Proxy Protocol V1/V2 的 NGINX 服务器,您可以确保日志记录与审计、访问控制与认证、安全防护和性能优化等关键场景中的客户端真实 IP 地址能够被准确获取和传递,从而提升系统的安全性、可靠性和用户体验。

文章 2024-03-02 来自:开发者社区

nginx-ingress通过ipv6暴露服务,并在nginx ingress日志中记录客户端真实ipv6的ip地址

CLB方式:1.新建一个ipv6的clb,绑定给nginx ingress,可以直接通过svc yaml来实现 apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: int...

nginx-ingress通过ipv6暴露服务,并在nginx ingress日志中记录客户端真实ipv6的ip地址
文章 2022-11-10 来自:开发者社区

Nginx反向代理后无法获取客户端真实IP地址

当我们使用 Nginx 代理转发服务后,会发现我们无法获取客户端的真实IP地址,从而无法获取客户端的地理位置等信息。1、原始配置文件如下worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/oc...

问答 2022-02-15 来自:开发者社区

请问k8s中部署的nginx测试应用,如何才能获取到客户端的真实ip地址呢?

请问k8s中部署的nginx测试应用,通过ingress nginx域名外部访问,如何才能获取到客户端的真实ip地址呢? 本问题来自阿里云开发者社区的【11大垂直技术领域开发者社群】。 https://developer.aliyun.com/article/713951 点击链接欢迎加入感兴趣的技术领域群。

问答 2017-10-23 来自:开发者社区

Nginx如何获取客户端实际IP地址

我们在阿里云服务器上搭了一个服务,然后想用Nginx对某些端口和针对客户端IP进行限流,但发现Nginx收到的remote_addr都是阿里云网关的IP,取不到客户端实际发送的IP,请问这个问题有什么解决办法?

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"部署Nginx并通过Ingress暴露和监控服务","productDescription":"在阿里云容器服务(后简称ACK)集群中通过YAML文件快速部署一个Nginx应用并通过Nginx Ingress暴露和监控服务,结合使用ACK、日志服务、专有网络搭建业务部署运维方案。","productContentLink":"https://www.aliyun.com/solution/tech-solution/nginx_ingress","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/nginx_ingress"},"productButton2":{"productButtonText":"一键部署","productButtonLink":"https://help.aliyun.com/document_detail/2400022.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"MSE实现全链路灰度","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/iflgbomse","productPromotionInfoSecondText":"云架构必修课:云上高可用架构","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/hablog"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}
X