问题再现:
将前端打包后,上传至nginx服务器中,请求Ruoyi-vue的
http://172.24.0.30/prod-api/captchaImage
出现:
#此时我们查看nginx配置文件:
user root;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;