server
{
listen 8001;#监听端口
server_name localhost;#域名
location / {
root /home/vue/dist/;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
access_log off;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
nginx配置地址端口
最新推荐文章于 2024-04-08 06:06:24 发布