Category: Nginx
-
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: 20 Let’s talk about my site first: personal technical blog, WordPress 7.0 construction, with Polylang bilingual plug-in, there are only about 2,000 text articles, butThe number of labels is as high as 18000+. It is also this massive tab page that makes my 1-core 2G Alibaba Cloud ECS frequently roll over, the most serious June 3, a single…
-
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: 53 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: 25 1. /page-editor/?pageid=1833011727099722 Open response 200. as shown in Figure 1 2. /page-editor/mobile?pageid=1833011727099722&type=mobile Now open the response 404 . as shown in Figure 2 3. Now there is only one index.html file under the directory backend\web\page-editor. Page-editor is implemented based on Vue. The existing Nginx configuration is as follows: 4. When nginx matches /page-editor/mobile, the /page-editor/ location will…
-
Post Views: 16 1. Confirm the Web server user with the following command: , confirm as the WWW user. There are root users and WWW users in the system (web server users) 2. Set the owner of the project directory to root user: 3. Set directory permissions: 755: 4. Set the owner of the runtime directory to the WWW user:…
-
Post Views: 23 1. Check the /etc/os-release file, the operating system is CentOS Stream 9. 2. Reference:https://lnmp.org/install.htmlInstall the VPS or server with putty or similar ssh tools; after logging in, run: screen -s lnmp If the screen: command not found command does not exist can be executed: yum install screen Installation, prompt: not found. as shown in Figure 1 3.…
-
Post Views: 16 1. When the front-end interface response timeout of the current page request timeout, sometimes the response is 504 (in line with expectations), and sometimes the response is 404 (not in line with expectations). as shown in Figure 1 2. Based on _request_id:004c4f55c16c0904759fdb580d7c5df9 query ingress-nginx The log, ingress-nginx-controller exists a record (10-14 16:01:33), response 404. as shown in…
-
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,…