当前位置:网站首页>How to access the top-level domain name and automatically jump to the secondary domain name?
How to access the top-level domain name and automatically jump to the secondary domain name?
2022-06-23 22:32:00 【Duzhiqiang】
Requirements describe :
For example, you need to implement access qq.com, Jump to www.qq.com.
Implementation method :
1、nginx Realization
nginx Redirect configuration top-level domain name to www Two level domain name
if ($http_host ~ "^qq.com$") {
rewrite ^(.*) https://www.qq.com$1 permanent;
}2、 The parsing layer implements
Rule reference :
3、cdn Configuration to realize
- hold qq.com Also in the cdn Do domain name access , Add the following configuration : Source station filling www The origin information of the domain name ,host Also fill in www domain name :
- Cache configuration -- visit url Rewrite and add the following configuration :
———————————————————————————————————————————— In the above ways, you can access the top-level domain name and jump to www Secondary domain name requirements .
边栏推荐
- In the new easygbs kernel version, the intranet mapping to the public network cannot be played. How to troubleshoot?
- In the "Internet +" era, how can the traditional wholesale industry restructure its business model?
- Summary of redis Functions PHP version
- This article takes you to understand the JVM class loading mechanism
- Batch production of plant hangtag
- Why is the server fortress machine error code 110? How to solve error code 110?
- Tencent News's practice based on Flink pipeline model
- Use bcryptjs to encrypt the password
- Interviewer: the difference between uselayouteffect and useeffect
- Get and post are nothing more than TCP links in nature?
猜你喜欢

Hackinglab penetration test question 8:key can't find it again

游戏安全丨喊话CALL分析-写代码

Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse

为什么你的数据图谱分析图上只显示一个值?

Using the provider to transform the shit like code, the amount of code is reduced by 2/3!

openGauss Developer Day 2022正式开启,与开发者共建开源数据库根社区

Game security - call analysis - write code

Pourquoi une seule valeur apparaît - elle sur votre carte de données?

Opengauss Developer Day 2022 was officially launched to build an open source database root community with developers

Slsa: accelerator for successful SBOM
随机推荐
What is dynamic registration? What is static registration?
Why is only one value displayed on your data graph?
Use bcryptjs to encrypt the password
FTP server setup setting website information can I set up FTP myself
H264_ AVC analysis
Devops sharing: how to hold the meeting?
Important announcement: Tencent cloud es' response strategy to log4j vulnerability
What if the fortress remote access server fails? What are the reasons why the fortress computer fails to connect to the server?
Beauty of script │ VBS introduction interactive practice
How to select Poe, poe+, and poe++ switches? One article will show you!
What is stock online account opening? Is it safe to open a mobile account?
This article takes you to understand the JVM class loading mechanism
openGauss Developer Day 2022正式开启,与开发者共建开源数据库根社区
Six supervised learning methods: classification of poisonous mushrooms
Change sql- Tencent cloud database tdsql elite challenge - essence Q & A
How does the fortress remote login server operate? What is the application value of Fortress machine?
Learn about reentrantlock
WordPress plugin WP guppy 1.1 - WP JSON API sensitive information disclosure
在宇宙的眼眸下,如何正确地关心东数西算?
Shell automatically obtains hardware information