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;
}
}
网友评论