Nginx将http转为https后的接口调用问题

内网环境的项目,要求用https,但是80端口和443端口都被禁用了。
项目开发用的是http,现在用Nginx将http转为https,前端已经能访问,可是调用后台接口就404了,请问各位大佬怎么解决这个问题?
ssl证书是用OpenSSL生成的。
环境是windows。

server {
        listen       9528 ssl;
        server_name  172.168.16.6;

        ssl_certificate C://Users//Desktop//ssl//server.crt;
        ssl_certificate_key C://Users//Desktop//ssl//server1.key;

        error_page 497 301 =307 https://172.168.16.6:9528$request_uri;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            try_files $uri $uri/ /index.html;
        }

    location /prod-api/{
        proxy_pass http://172.168.16.6:8201/;

        proxy_pass_header Server;
        proxy_set_header Host $http_host;
        #proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Protocol $scheme;
    }

https://www.cnblogs.com/nuccch/p/7681592.html

这个问题跟之前的重复了