HBuilder发布H5,nginx部署
server {
listen 80;
#server_name localhost;
server_name ;
location / {
root /var/www/uni_app/h5;
index ;
}
# location
# root: 将接收到的资源根据/usr/local/nginx/html/dist文件夹去查找资源
# index: 默认去上述路径中找到或者
error_page 500 502 503 504 /;
location = / {
root html;
}
}