worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8081;
server_name 192.168.0.148;
location / {
root E:/workTest/dist;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
# 直接复制这个,有几个前端项目复制几个server,端口号区分开即可
server {
listen 8082;
server_name 192.168.0.148;
location / {
root E:/dist;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
版权声明:本文为qq_37889636原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。