Let's Encrypt 泛域名nginx生成不了对应配置文件

问答中心分类: LinuxLet's Encrypt 泛域名nginx生成不了对应配置文件
cc asked 6年 ago
#######################################################################
# OneinStack for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+ #
# For more information please visit https://oneinstack.com #
#######################################################################
What Are You Doing?
1. Use HTTP Only
2. Use your own SSL Certificate and Key
3. Use Let's Encrypt to Create SSL Certificate and Key
q. Exit
Please input the correct option: 3
Please input domain(example: http://www.example.com): abc.com
domain=abc.com
Please input the directory for the domain:abc.com :
(Default directory: /data/wwwroot/abc.com):
Virtual Host Directory=/data/wwwroot/abc.com
Create Virtul Host directory......
set permissions of Virtual Host directory......
Do you want to add more domain name? [y/n]: y
Type domainname or IP(example: example.com other.example.com): *.abc.com
domain list=*.abc.com
Do you want to redirect from *.abc.com to abc.com? [y/n]: y
Do you want to redirect all HTTP requests to HTTPS? [y/n]: y
Please select DNS provider:
dp,cx,ali,cf,aws,linode,he,namesilo,dgon,freedns,gd,namecom and so on.
More: https://oneinstack.com/faq/letsencrypt
Please enter your DNS provider: cf
Syntax: export Key1=Value1 ; export Key2=Value1
Please enter your dnsapi parameters: export CF_Key=e5719132*****78d32ddb853eb0a ; export CF_Email=****@qq.com
[Fri May 4 03:31:19 CST 2018] Domains have changed.
[Fri May 4 03:31:19 CST 2018] Multi domain='DNS:abc.com,DNS:*.abc.com'
[Fri May 4 03:31:19 CST 2018] Getting domain auth token for each domain
[Fri May 4 03:31:19 CST 2018] Getting webroot for domain='abc.com'
[Fri May 4 03:31:19 CST 2018] Getting webroot for domain='*.abc.com'
[Fri May 4 03:31:19 CST 2018] abc.com is already verified, skip dns-01.
[Fri May 4 03:31:20 CST 2018] *.abc.com is already verified, skip dns-01.
[Fri May 4 03:31:20 CST 2018] Verify finished, start to sign.
[Fri May 4 03:31:20 CST 2018] Cert success.
-----BEGIN CERTIFICATE-----
********
证书密钥,生成成功.
****
-----END CERTIFICATE-----
[Fri May 4 03:31:20 CST 2018] Your cert is in /root/.acme.sh/abc.com/abc.com.cer
[Fri May 4 03:31:20 CST 2018] Your cert key is in /root/.acme.sh/abc.com/abc.com.key
[Fri May 4 03:31:20 CST 2018] The intermediate CA cert is in /root/.acme.sh/abc.com/ca.cer
[Fri May 4 03:31:20 CST 2018] And the full chain certs is there: /root/.acme.sh/abc.com/fullchain.cer
Do you want to add hotlink protection? [y/n]: y
Allow Rewrite rule? [y/n]: y
Please input the rewrite of programme :
wordpress,opencart,magento2,drupal,joomla,laravel,thinkphp,pathinfo,discuz,typecho,ecshop,nextcloud rewrite was exist.
(Default rewrite: other): drupal
You choose rewrite=drupal
Allow Nginx/Tengine/OpenResty access_log? [y/n]: y
You access log file=/data/wwwlogs/abc.com_nginx.log
nginx: [emerg] conflicting parameter "*.abc.com" in /usr/local/openresty/nginx/conf/vhost/abc.com.conf:25
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed
Create virtualhost ... [FAILED]

6 Answers
cc answered 6年 ago
cd /usr/local/openresty/nginx/conf/vhost/ 目录下 没有生成对应域名的abc.com.conf
域名解析A记录肯定是成功了,不然密钥 ..也生成不了. 
用的是CF DNS ,   

oneinstack answered 6年 ago
*.abc.com重复绑定了吧,提示冲突

cc answered 6年 ago
重复绑定?
但是 vhost/ 下面没有这个域名的.conf
我换了一个域名重新试,也是这样的 也生成不了 .conf
 

cc answered 6年 ago
./vhost.sh del  我先从脚本里面 删除这个域名,在重新运行脚本,也还是不行.一样的提示..
提示冲突..

oneinstack answered 6年 ago
没问题啊

oneinstack answered 6年 ago
已经修复!