My wrong configuration is:
Server file root address:
I want to enter this through the browser The image is accessed at the address:
However, you will find that the file cannot be found and it will always 404. The reason is that the root path configuration is wrong. Let’s take a look at the principle of the root path:
## The #root configuration means that the URL will be followed by the directory configured by root to form the corresponding file path. means that the address we enter in the browser actually accesses/home/ftpuser/images/images/~~~
The above is the detailed content of How to solve the image access 404 problem after Nginx image server configuration. For more information, please follow other related articles on the PHP Chinese website!