Ubuntu 参数Nginx的数目无效

Ubuntu 参数Nginx的数目无效,ubuntu,nginx,ssl,https,arguments,Ubuntu,Nginx,Ssl,Https,Arguments,我尝试在我的网站上激活Https,但当我尝试启动Nginx时出现了一个问题(在bloc Https一切正常工作之前) 错误: nginx: [emerg] invalid number of arguments in "ssl_certificate" directive in /etc/nginx/sites-enabled/reverse-proxy.conf 我的代码: server { listen 80; listen [::]:80;

我尝试在我的网站上激活Https,但当我尝试启动Nginx时出现了一个问题(在bloc Https一切正常工作之前)

错误:

 nginx: [emerg] invalid number of arguments in "ssl_certificate" directive in /etc/nginx/sites-enabled/reverse-proxy.conf
我的代码:

server {
    listen 80;
    listen [::]:80;

    access_log /var/log/nginx/reverse-access.log;
    error_log /var/log/nginx/reverse-error.log;

    location / {
                proxy_pass https://34.226.225.140:3000;
}}


}}

这真的是原始配置吗?也许你的真实配置中的路径名中有一些空格?是的,这是我的原始代码。。。我的代码中没有空格..错误消息应该指定行号吗?使用
nginx-T
(大写
T
)查看所有包含文件的配置,并确保nginx读取的文件正确。查找不匹配的引号或缺少的
在一行的末尾。
server {
    listen 443 ssl;
    listen [::]:443;
    ssl_certificate /home/ubuntu/certificateSSL/certificate.crt;
    ssl_certificate_key /home/ubuntu/certificateSSL/private.key;
    server_name ***.fr;
    access_log /var/log/nginx/reverse-access.log;
    error_log /var/log/nginx/reverse-error.log;
    location / {
                proxy_pass https://**.***.***.***:****;