小编Slo*_*boy的帖子

添加ssl后Nginx不会重启

我添加了一些修改我的 root@mypage:/etc/nginx/sites-available/default

当我这样做时sudo service nginx restart ,服务器会返回此错误:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

如果我运行nginx -t -c /etc/nginx/nginx.conf输出是

Enter PEM pass phrase: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful

有人可以告诉我我做错了什么吗?我在这里完全空白

这是root@mypage:/etc/nginx/sites-available/default文件

 server {
    listen 80;
    listen [::]:80 default_server ipv6only=on;

    server_name mypage.com;
    passenger_enabled on;
    rails_env    production;
    root         /home/deploy/mypage/current/public;

    # redirect server error pages to …
Run Code Online (Sandbox Code Playgroud)

ssl vps nginx ssl-certificate

0
推荐指数
1
解决办法
2595
查看次数

标签 统计

nginx ×1

ssl ×1

ssl-certificate ×1

vps ×1