WordPress knowledge sharing

Tencent Cloud CDN cautiously enables the intermediate source configuration and the back source follow 301/302 configuration, which will result in the front and rear consoles being unable to open

Wei Aisi Blog has used Tencent Cloud CDN for a long time, and Lao Wei is not a person who loves to make trouble. He usually uses the default setting of CDN. At first, when opening Tencent Cloud CDN intermediate source configuration, we encountered the problem that the background could not be opened. Please move to related articles Do not enable intermediate source configuration for Wordpress website using Tencent Cloud CDN acceleration also Log in to WordPress using Tencent Cloud CDN, and the administrator shows in the background that the connection has been reset At the beginning, it took a lot of time to solve the problem, but later it was found that it was all that Intermediate source configuration After the closure, the world will be at peace.

One day, Lao Wei unintentionally wanted to try“ Back to source follow 301/302 configuration ”According to the official statement, 301/302 will be guided to directly request resources from the jump address instead of returning 302 to the user, which seems to help improve the user experience. Shortly after the launch, Lao Wei found that the background of the website could not log in normally, the front page also showed locked, and 404 failed to open the links inside and outside the site. There were too many errors. Fortunately, he had experience this time and quickly closed the "Follow 301/302 configuration back to source", waiting for five minutes after the distribution of configuration, Test the front and rear console of the website again.

Previously, a work order was sent to Tencent Cloud due to the problem caused by the intermediate source configuration, and the customer service could not explain why. It is estimated that the non-technical personnel could not understand the profound principle of this problem, and so Lao Wei did not want to waste time in this regard. Although opening it may speed up website access and improve the user experience, the side effects are also great. Lao Wei only encountered these two problems on the WordPress website. Maybe other programs have no problems.

In short, those who are interested in these two options should be careful to enable the intermediate source configuration and the back source follow 301/302 configuration. If you encounter various errors in the future, whether you configure the CDN or modify the code, the idea is to restore the site to the state you were in before the toss as soon as possible, first let the site access normally, and then consider whether it is worth continuing the toss, Or don't struggle in the production environment.

Follow up:

At 18:30 in the afternoon of the day of posting, I received a call from a little sister of Tencent Cloud, who said that this problem had been submitted to the technology, and the technology attached great importance to this problem, and would study and improve it as soon as possible.

1. The reason why Lao Wei wrote this article is that according to the description on the official page, if Enabling these two settings will reduce the number of times of returning to the source When users access, they always grab data from the nearest CDN node, which is equivalent to improving the CDN hit rate, thereby improving the user experience and access speed, which is the original intention of Lao Wei.

That is to say, these two functions are turned off by default, but if they are turned on, it may be a blessing, right? So I tried it, but the result was not good. After it was closed, the business was normal. put in plain language The two settings have no impact on the business operation of Tencent ECS , Lao Wei just wanted to do something, but he gave up when he didn't do it well. It is estimated that ordinary people do not have the same trouble as me and will not change the settings randomly.

2. The little sister mentioned whether there was any problem business and studied it with them. Old Wei was just struggling about that at that time. Because it was the production environment (wordpress blog program), he closed the settings immediately after the problem occurred, and did not dare to change them again. If you happen to encounter such a problem (if you must turn on the intermediate source), you can start immediately and ask Tencent Cloud for advice to solve this problem.

3. By default, Tencent Cloud sets these two services to be closed. It also considers that people use many different programs and different system environments, so it gives everyone the option to close them if there is a problem. I wrote an article about intermediate sources last year Do not enable intermediate source configuration for Wordpress website using Tencent Cloud CDN acceleration It is also such a solution. From the perspective of VPS host, the programs and environments configured by everyone are ever-changing, so it is inevitable that all kinds of situations will occur. So I give you a piece of advice: Don't change or toss about if you don't understand. It is no problem to follow the default settings step by step.

4. Tencent Cloud has made two special phone calls about this problem (I didn't receive it the first time), which shows that it still attaches great importance to this problem, and my little sister also said that she would improve it as soon as possible. In fact, Old Wei was just fooling around for a while, but he didn't expect the authorities to attach such importance to him. So let's reiterate that these two settings are not mandatory projects for Tencent Cloud CDN, and not opening them will not affect the acceleration of your website business. Weiaisi blog uses Tencent Cloud CDN acceleration and Tencent Cloud Server. You can see how fast you can open Weiaisi blog pages. The speed is fast both north and south.

The latest solution on November 12, 2018:

After unremitting efforts (ceaseless struggle), Lao Wei finally found a way for Tencent Cloud CDN to open the intermediate source without affecting the opening of the wordpress website. Please move to The final solution to the inability of Wordpress background access caused by Tencent Cloud CDN opening the intermediate source At this point, this problem has been successfully solved, and there will be no more cases that can not be opened.

Like( zero )
Article name: "Tencent Cloud CDN Cautiously Enabling the Intermediate Source Configuration and Back to Source Following 301/302 Configuration Will Cause the Front and Back Office Fails to Open"
Article link: https://www.vpsss.net/8996.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.