官网下载:http://nginx.org/en/download.html
# 启动 nginx
start nginx.exe
# 退出 nginx
nginx -s quit
基本代理配置
events {}
http {
server {
listen 80;
server_name 127.0.0.1;
location / {
proxy_pass http://127.0.0.1:8000;
}
location /api {
proxy_pass http://127.0.0.1:3000;
}
}
}