VPS侦探论坛

 找回密码
 注册
查看: 214|回复: 2

ssl证书生成失败

[复制链接]
发表于 2022-11-10 10:45:27 | 显示全部楼层 |阅读模式

你好 :我添加域名的时候用了两个  最后生成证书失败了是怎么回事呢


日志如下

Please enter domain(example: www.lnmp.org): admin.fullapi.io api.fullapi.io
Your domain: admin.fullapi.io api.fullapi.io
Enter more domain name(example: lnmp.org *.lnmp.org): admin.fullapi.io api.fullapi.io
domain list: admin.fullapi.io api.fullapi.io
Please enter the directory for the domain: admin.fullapi.io api.fullapi.io
Default directory: /home/wwwroot/admin.fullapi.io api.fullapi.io: /home/wwwroot/fullapi/public
Virtual Host Directory: /home/wwwroot/fullapi/public
Allow Rewrite rule? (y/n) y
Please enter the rewrite of programme,
wordpress,discuzx,typecho,thinkphp,laravel,codeigniter,yii2 rewrite was exist.
(Default rewrite: other): laravel
You choose rewrite: laravel
Enable PHP Pathinfo? (y/n) y
Enable pathinfo.
Allow access log? (y/n) y
Enter access log filename(Default:admin.fullapi.io api.fullapi.io.log):
You access log filename: admin.fullapi.io api.fullapi.io.log
Create database and MySQL user with same name (y/n) n
Add SSL Certificate (y/n) y
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
3: Use BuyPass to create SSL Certificate and Key
4: Use ZeroSSL to create SSL Certificate and Key
Enter 1, 2, 3 or 4: 2
It will be processed automatically.

Press any key to start create virtul host...

Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/rewrite/laravel.conf
Test Nginx configure file......
nginx: [emerg] unknown log format "api.fullapi.io.log" in /usr/local/nginx/conf/vhost/admin.fullapi.io api.fullapi.io.conf:36
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Reload Nginx......
nginx: [emerg] unknown log format "api.fullapi.io.log" in /usr/local/nginx/conf/vhost/admin.fullapi.io api.fullapi.io.conf:36
Reload service php-fpm warning, no pid file found - php-fpm is not running ?
/usr/local/acme.sh/acme.sh [found]
/usr/bin/lnmp: line 1148: [: /usr/local/nginx/conf/ssl/admin.fullapi.io: binary operator expected
Starting create SSL Certificate use Let's Encrypt...
[Thu Nov 10 10:39:28 CST 2022] Unknown parameter : api.fullapi.io
Let's Encrypt SSL Certificate create failed!
================================================
Virtualhost infomation:
Your domain: admin.fullapi.io api.fullapi.io
Home Directory: /home/wwwroot/fullapi/public
Rewrite: laravel
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
================================================


美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2022-11-10 14:25:34 | 显示全部楼层


删除后重新添加,第一个主域名只能输入一个域名
具体可以查看官网教程 https://lnmp.org/faq/lnmp-vhost-add-howto.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-11-11 11:01:09 | 显示全部楼层

licess 发表于 2022-11-10 14:25
删除后重新添加,第一个主域名只能输入一个域名
具体可以查看官网教程 https://lnmp.org/faq/lnmp-vhost-ad ...

美国VPS推荐: 遨游主机LinodeLOCVPS主机云VPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2022-12-3 00:57 , Processed in 0.045165 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表