The previous article introduced how to configure static file access under Apache, and how to set it up with Nginx as a web server?
1. Modify the conf configuration file
Add location configuration in http->server, as follows
location /logs {
alias /mnt/logs;
}
2. Access method
The files in the /mnt/logs directory in the server can be accessed through the listening port set in the server. Access method such ashttp://xx.xx.xx.xx:xx/logs/{file_name}