参考网址(https://blog.csdn.net/long690276759/article/details/79170657)

http、https都可以访问 

```
server {
    listen 80;
    listen 443 ssl;
    ssl_certificate /usr/local/nginx/cert/1524027757352.pem;
    ssl_certificate_key /usr/local/nginx/cert/1524027757352.key;        
    server_name xu.minghai.shop;

        location / {
            proxy_pass http://127.0.0.1:3003/;
        }
         
}
```

遇到的问题:

1. nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr

切换到源码包:

  • 其中遇到了 Ubuntu : 解决更新时出现 Unable to locate package update
  • 其中遇到了 安装Ubuntu中安装OpenSSL 
  • 其中遇到了 ./configure: error: SSL modules require the OpenSSL library
10-07 11:46