nginx实现服务器只提供数据不渲染页面
server {
listen 80;
server_name blog.chenfl.top;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root d:/blog/;
index index.html index.htm;
}
location /apis {
rewrite ^.+apis/?(.*)$ /$1 break;
include uwsgi_params;
proxy_pass http://127.0.0.1:3000;
}
}
前端实现