As long as there is a .jgp suffix in the URL, no matter what the path is, /a/1.jpg or a/f/1.jpg or a/f/d/1.jpg, no matter how the path is written, as long as the suffix is. jpg is matched by locationton, how to write this location?
Place the static resources or directories in the /data directory, for example: /data/img/01.jpg; then the access address is: http://localhost/img/01.jpg
Pay attention to the file permissions in the /data directory!
The matching suffix is
.jpg
The matching suffix is
.jpg
,.gif
,.png
About configuring static directories:
Place the static resources or directories in the /data directory, for example: /data/img/01.jpg; then the access address is: http://localhost/img/01.jpg
Pay attention to the file permissions in the /data directory!