nginx accesses static resources
Open the nginx configuration file
1 Open the nginx.conf file
2 Modify nginx.conf content
Just modify or add a location, you can access all files under the html path
location / {
alias /www/server/nginx/html/;
autoindex on;
}
If you only need to access the content of a specific html folder, you need to specify
location /static/{
alias /www/server/nginx/html/static/
}
Effect