Tag: Nginx
-
Post Views: 16 Preface This article will introduce how to solve it completely The Chinese label problem remaining in the English language, and automate tag merge and URL jumps through Go scripts. project address:https://github.com/shuijingwan/tag-merge problem background After completing the operations of the previous blogs, we found that there are still some Chinese tags that have not been processed under the…
-
Post Views: 15 Background A WordPress site I maintain, in order to enhance security protection, I have recently configured a global restriction rule in Nginx. Shortly after the configuration was completed, when editing the article, it was found that the tag could not be added and saved normally, and the browser console and nginx logs appeared frequently 429 Too Many…
-
Post Views: 33 I recently wanted to add the function of the article to read on the blog. Add the historical pageview to the old article, and realize automatic counting of new visits at the same time, and there is no need to modify the core code of the theme, and do not rely on complex operations. After many times…
-
Post Views: 54 1. My personal blog suddenly responded to 504’s investigation and resolution process today. as shown in Figure 1 2. 504 Gateway Timeout Description Nginx (or other reverse proxy) waits for the backend (PHP-FPM) response timeout. Check in the following order: 3. Execute the top command, the result is shown as follows: The problem is very clear, and…
-
Post Views: 19 1. In LNMP 2.1, delete the default Default virtual host process. Looking at the directory, only .user.ini is left in /home/wwwroot/default, and other files have been manually deleted. as shown in Figure 1 2. Reference: lnmp add and delete virtual host and pseudo-static use tutorialhttps://lnmp.org/faq/lnmp-vhost-add-howto.html. But there is no default virtual host. as shown in Figure 2…
-
Post Views: 17 1. The front-end response timeout, the response time is: 1 m 0.06 s. as shown in Figure 1 2. The response of the back-end interface does not time out, and the response time is: 1 m 5.70 s. as shown in Figure 2 3. Adjust the proxy settings and add 3 timeout-related settings. The default is 60s,…
-
Post Views: 16 1. After entering the front-end page, click some links, the URL will change, and the response is 200 at this time. But once the entire page is refreshed, it will respond to 404. such as video 1 2. View the error log of nginx and add a line: try_files $uri $uri//index.html; 3. Refresh the entire page again,…
-
Post Views: 15 1. Request the backend interface directly in Postman, response 401. in line with expectations. as shown in Figure 1 2. Request the front-end interface directly in Postman to respond to 504 Gateway time-out. Not as expected. as shown in Figure 2 3. The front-end configuration file in Nginx is as follows 4. Check the request log of…
-
Post Views: 20 1. The current domain name is:https://learn-php-app-0605-prod.shuijingwanwq.com. Plan to switch to:https://learn-php-app-0605-prod.wangqiang.store. as shown in Figure 1 2. Add the DNS resolution of learn-php-app-0605-prod.wangqiang.store. as shown in Figure 2 3. Based on the virtual host before OneInStack delete: learn-php-0605-prod.shuijingwanwq.com, the directory should not be deleted. 4. Based on OneInstack Add a new virtual host: learn-php-app-0605-prod.wangqiang.store, the directory still uses…
-
Post Views: 155 1. There is a Shopify PHP application, which can already be previewed in the development environment. as shown in Figure 1 2. Now it is ready to be deployed to the production environment. Shopify recommends creating a separate application if you need to deploy the application to the production environment. This application shares the code base with…