当前位置:网站首页>When developing or debugging the IP direct scheme, it should be noted that the host value should be consistent with the direct IP
When developing or debugging the IP direct scheme, it should be noted that the host value should be consistent with the direct IP
2022-07-25 04:32:00 【Lao Luo who likes playing football】
Notice the problem
As the title , If inconsistent, you may encounter 502 Or other failure of verification , Whether it's http still https We should pay attention to this problem ! stay http In this scenario, it may be on the service side Nginx Will configure rules , If permitted IP Direct but Host The field value must follow IP matching , namely Host yes IP Corresponding domain name
The following example 502 Of case
$ curl 'http:// A test IP/test_query?c=1'
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
notes : use curl -H Set up IP Corresponding Host Then it returned normally
curl 'http:// A test IP/test_query?c=1' -H'Host: Specific domain name
Reference documents
边栏推荐
- Open source summer interview | "after 00" PMC member Bai Zeping
- Sony announced the closure of Beijing mobile phone factory! The production line will be moved to Thailand, and the cost can be reduced by half!
- What causes the wait event of TCP socket (kgas) in oracle?
- GetData table table data join MySQL method
- Oracle uses FY_ recover_ Data recover truncate deleted data
- MySQL -- index and transaction isolation level
- Penetration test target combat SQL injection getshell
- 有个问题想请教下,我想用来同步数据库,但我看他是根据mysql 的binlog同步的,如果是大表,一
- Numpy overview
- Hbuilderx eslint configuration
猜你喜欢

5年经验的大厂测试/开发程序员,怎样突破技术瓶颈?大厂通病......

RGB and SATA function switching module based on Quanzhi rk3568j

Interview required: how to design the seckill system?

盐粒和冰粒分不清

Analytic hierarchy process of MATLAB

Behind Senma's LP, "Wenzhou Department" is running into the venture capital circle

Spirng security (VIII) multiple filter chains coexist

Druid连接池——从0开始坚强的一点点的自学,Druid一点不懂的可以点进来,懂得别点进来,点进来你会嫌我啰嗦的

Maker concept design to adapt to popular education

Swagger simple quick start tutorial
随机推荐
Day008 select structure (switch statement)
Win11 experience
Leetcode:733. image rendering [BFS]
Thinking of reading
5年经验的大厂测试/开发程序员,怎样突破技术瓶颈?大厂通病......
LVGL 8.2 Span
Understand Huawei's 2018 financial report with one picture
开源之夏专访|“00 后” PMC member 白泽平
[cloud picture theory] 247 first introduction to Huawei cloud analysis service
LVGL 8.2 Textarea
When the development of the meta universe begins to show more and more the style of the Internet, we need to be vigilant
Spire. Office for net 7.7.2 and news
IT自媒体高调炫富,被黑客组织盯上,铁定要吃牢饭了…
Nested if selection structure and switch selection structure
Attack and defense world ----- ics-05
Beijing University of Posts and telecommunications | RIS assisted in-house multi robot communication system joint deep reinforcement learning
Unity3d learning note 9 - loading textures
Metinfo function public function getcity() error: XXX function no permission load!!!
[cloud picture theory] 248 illustrated public network domain name resolution: easy domain name access to websites / mailboxes
Custom dialog (including header and footer)