这种问题大概率是你的nginx  location 设置问题:

server {
listen 443 ssl;
ssl_certificate /etc/nginx/cert/server.crt;
ssl_certificate_key /etc/nginx/cert/server.key;
server_name beta.sc.cn;
charset utf-8;
client_max_body_size 50M;

 

location /demo-service/api {
include uwsgi_params;
uwsgi_param HTTP_X_FORWARDED_PROTOCOL https;
uwsgi_pass rookie:8000;
}
location / {
root /code/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}

vue  接口前缀开头要和nginx   location  /demo-service/api 后端设置保持一致

vue  nginx  部署后请求405 解决办法

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-07-23
  • 2021-05-26
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2021-06-19
  • 2022-01-08
  • 2021-10-27
  • 2021-10-30
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案