立即学习:https://edu.csdn.net/course/play/27216/361589?utm_source=blogtoedu
动静分离:
在nginx.conf文件的server模块中增加如下信息:
server{
listen 80;
server_name a;
location ~ .*\.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css)$
{
root /opt/nginx/static;
expires 30d;
}
}