当前位置:网站首页>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
边栏推荐
- Beijing University of Posts and telecommunications | RIS assisted in-house multi robot communication system joint deep reinforcement learning
- To clarify the tax arrears: there is no tax arrears, and will continue to operate in compliance, rooted in China
- Very clear organization
- ThreadLocal Kills 11 consecutive questions
- 【基于stm32f103的SHT30温湿度显示】
- MySQL -- index and transaction isolation level
- 数据湖(十六):Structured Streaming实时写入Iceberg
- LVGL 8.2 Message box
- Aggregate payment meets the needs of various industries to access a variety of payments
- DOM event flow
猜你喜欢

Summary of UPR optimization suggestions of unity

Creativity: presentation of AI oil paintings with high imitation mineral pigments

ADS1256 debugging notes based on stm32hal Library

The application could not be installed: INSTALL_ FAILED_ USER_ RESTRICTED

Current characteristics of steering gear with great resistance

Jenkins continues to integrate entry to mastery

DOM event flow

Press the switch for the minimum number of times to turn on all lights

I didn't expect Mysql to ask these questions

Internship in 2022
随机推荐
Impala2.12 environmental installation
Oracle uses FY_ recover_ Data recover truncate deleted data
Permanently solve Matplotlib Chinese garbled code
运筹学基础【一】 之 导论
5年经验的大厂测试/开发程序员,怎样突破技术瓶颈?大厂通病......
Analyze the exploration in high-quality steam Education
01 create project warehouse
Paper:《Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Condi
etcd学习
如何取得数据库创建时间?
Spirng security (VIII) multiple filter chains coexist
[interview must brush 101] greedy algorithm, simulation, string
Behind Senma's LP, "Wenzhou Department" is running into the venture capital circle
Source code | opencv DNN + yolov7 target detection
Apple airpower was forced to cancel its launch two years after it was launched! Uncover the reason!
@Summary of ResponseBody annotation
GetData table table data join MySQL method
MongoDB的安全认证详解
很清晰的条理
How many rows does PostgreSQL need to partition for each table?