Category: HTTP Server
-
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: 19 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…
-
Post Views: 22 1. In a container built based on nginx:alpine, a URL response 404 needs to edit the configuration of nginx to make it respond to 200. as shown in Figure 1 2. After editing the configuration of nginx, you need to reload. Execute the following commands. as shown in Figure 2 3. After reloading, the URL response is…
-
Post Views: 18 1. Reference:In Laravle 6, simulate a route requesting a resource file, and the data is fetched from the database . Request 200 in the local environment. as shown in Figure 1 2. In the production environment, the response is 404 not found (openresty, server: cloudflare). as shown in Figure 2 3. Check the Nginx request log to…
-
Post Views: 13 1. The same URL, respond to 302 in the browser. as shown in Figure 1 2. The same URL, respond 302 in the browser, and 200 in Postman. as shown in Figure 2 3. Decided to check the request log record of nginx, there are 2 request records, so it can be determined that when the request…
-
Post Views: 16 1. A GraphQL API, which takes up to 7 seconds. as shown in Figure 1 2. The time to query this request in Laravel Telescope, 1345 ms. as shown in Figure 2 3. Instead of requesting the GraphQL API on the page, it takes 1.87 seconds to request a separate request using the Altair GraphQL Client. Approximately…