当前位置:网站首页>【开发经验】开发项目踩坑集合【持续更新】
【开发经验】开发项目踩坑集合【持续更新】
2022-07-23 17:35:00 【沉默小管】
1.访问配置的二级域名失败
1.1 办法一
nginx反向代理配置错误
server {
listen 80;
autoindex on;
server_name xxx.xxx.net;#你的域名
if ( $host != 'xxx.xxx.net' ) {
rewrite ^(.*)$ https://xxx.xxx.net$1 permanent;
}
location / {
proxy_pass http://127.0.0.1:8181;
proxy_read_timeout 600s;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
index index.html index.htm;
}
}
1.2 办法二
服务器没有配置二级域名
我的服务器是使用腾讯云,所以我进入腾讯云后,再进入我的域名,添加二级域名配置,请看以下图片
添加红色框框里的内容
踩坑不易,还希望各位大佬支持一下 \textcolor{gray}{踩坑不易,还希望各位大佬支持一下} 踩坑不易,还希望各位大佬支持一下
个人主页: \textcolor{green}{个人主页:} 个人主页:沉默小管
个人网站: \textcolor{green}{个人网站:} 个人网站:沉默小管
技术交流 Q Q 群: 837051545 \textcolor{green}{技术交流QQ群:837051545} 技术交流QQ群:837051545
点赞,你的认可是我创作的动力! \textcolor{green}{点赞,你的认可是我创作的动力!} 点赞,你的认可是我创作的动力!
️ 收藏,你的青睐是我努力的方向! \textcolor{green}{收藏,你的青睐是我努力的方向!} 收藏,你的青睐是我努力的方向!
️ 评论,你的意见是我进步的财富! \textcolor{green}{评论,你的意见是我进步的财富!} 评论,你的意见是我进步的财富!
如果有不懂可以留言,我看到了应该会回复
如有错误,请多多指教
边栏推荐
- 人脸识别系统技术方案
- Conception de l'interface UART basée sur la FPGA
- Little fish sends lidar | just dinner is the first lottery
- TODO FIXME BUG TAG FEATURE 等配置
- Multithreading and high concurrency Day11
- Implementation of SPI communication protocol based on FPGA
- Terminal command (all)
- 11.神经网络基本概念
- Alibaba最新神作!耗时187天肝出来1015页分布式全栈手册太香了
- An SQL question about grouping query
猜你喜欢
![[shutter -- layout] flexible layout (flex and expanded)](/img/03/0f07a56487f8e91045f9e893e9f96c.png)
[shutter -- layout] flexible layout (flex and expanded)

小鱼送激光雷达啦 | 恰饭即抽奖第一期

Challenges of decentralized storage

Data link layer -------- Ethernet and ARP

人脸识别系统技术方案

lendingclub贷款状态loan status业务详解-current,charge off,issued,Fully Paid,grace period

UPC 2022 summer personal training game 12 (number of combinations b)

How to understand: common code block, construction block, static block? What does it matter?

LeetCode每日一题(1514. Path with Maximum Probability)

canvas绘制文本和清除绘制
随机推荐
elk笔记25--快速体验APM
.net core implements background tasks (scheduled tasks) longbow Tasks component (III)
Building virtual private network based on softther
The first layer of OSI model: physical layer, the cornerstone of existence!
There is great competition pressure for software testing jobs, and the "migrant workers" who graduated from 985 also suffer
11. Basic concepts of neural network
Fragment
Data link layer -------- Ethernet and ARP
(CVPR-2022)BiCnet
Read data from txt and convert it to Yolo format data
Alibaba's latest masterpiece! It took 187 days for the liver to come out. 1015 pages of distributed full stack manuals are so delicious
时代潮头,华为将风帆对准数字金融的风与海
[paper reading] gettext: trajectory flow map enhanced transformer for next POI recommendation
.NET Core 实现后台任务(定时任务)Longbow.Tasks 组件(三)
【机器学习】吴恩达:终生学习
Design of UART interface based on FPGA
An SQL question about grouping query
PHP file lock lottery to prevent concurrency
AE tutorial, how to animate illustrator layered documents in after effects?
Shell