Tag: try_files
-
Post Views: 18 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: 13 1. In the Docker container, the Nginx PHP environment responds to 404 not found, and opens a route mapped to the PHP file, as shown in Figure 1 2. Open a route mapped to an HTML file and respond to 200, as shown in Figure 2 3. The configuration file of nginx, the content is as follows…
