deerface 发表于 2020-3-4 20:48:34

求教安装证书为什么nginx报错

Enter 1 or 2: 1
Please enter full path to SSL Certificate file: /usr/local/nginx/conf/ssl/1_www.shifayuan.cn_bundle.crt
Please enter full path to SSL Certificate Key file: /usr/local/nginx/conf/ssl/2_www.shifayuan.cn.key
Test Nginx configure file......
nginx: open() "/usr/local/nginx/conf/rewrite/no.conf" failed (2: No such file or directory) in /usr/local/nginx/conf/vhost/www.shifayuan.cn.conf:20
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Reload Nginx......
nginx: open() "/usr/local/nginx/conf/rewrite/no.conf" failed (2: No such file or directory) in /usr/local/nginx/conf/vhost/www.shifayuan.cn.conf:20
# nginx: open() "/usr/local/nginx/conf/rewrite/no.conf" failed (2: No such file or dir

deerface 发表于 2020-3-4 20:53:38

Allow Rewrite rule? (y/n) n
You choose rewrite: none
Allow access log? (y/n) n
Disable access log.
Enable PHP Pathinfo? (y/n) n
Disable pathinfo.
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key

licess 发表于 2020-3-5 09:21:52

上面有错误提示里有说明,no.conf不存在,lnmp中没有no.conf 的伪静态规则,如果是自定义的需要自己创建好
按你发的过程的话不可能出现no.conf,除非修改过 /bin/lnmp 的脚本
你可以先修改提示的虚拟主机配置文件,将 no.conf 替换为 none.conf ,重启nginx
页: [1]
查看完整版本: 求教安装证书为什么nginx报错