nginx反向代理配置
2018-12-16 本文已影响6人
大菜鸟呀
server {
listen 80;
server_name 127.0.0.1;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80;
server_name www.abc.com;
location / {
proxy_pass http://127.0.0.1:3000;
root blog;
}
}