问答 2021-07-08 来自:开发者社区

nginx 访问外部请求报403:提示没有权限访问该URL?

nginx 配置如下: (/login的请求:proxy_set_header Host $proxy_host 配置会报403) server { listen 8092; server_name 192.168.2.x; location /login { proxy_pass https://flow.polar.com; proxy_set...

问答 2020-06-03 来自:开发者社区

nginx请求的url中有个百分号,导致无法请求这个链接怎么处理? : 配置报错 

@红薯 你好,想跟你请教个问题:我请求的url中有个百分号导致此文档无法下载,这个该怎么处理,或者怎么配置,十万火急啊url示例:http://localhost/contents/11%1阿斯顿飞.pdf 文档名称就是11%1阿斯顿飞.pdf,去掉百分号的话访问正常的,pdf也可以打开。

文章 2017-11-02 来自:开发者社区

nginx 过滤请求URL参数及重定向

现在有一同事,在针对web服务时,有一需求: vm/ivr?phone=13933385258&destId=12590641637&fee=&sp=cyhx100&duration=112&time=20120514100331  HTTP/1.1   条件为红色的,能不能在nginx中跳转到无用的地方,或直接返回404等 根据他这个需...

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

产品推荐

{"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"}}