Linux 配置成功
server {
listen 8080;
server_name 49.235.58.56;
location / {
root /www/eleme/dist;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location /api/ {
proxy_pass http://127.0.0.1:8081;
proxy_redirect default;
}
}
请各位大神解答一下,十分感谢
不要用
nginx -s reload
命令,用systemctl restart nginx
重启nginx试一下。