VPS侦探论坛

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

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

[复制链接]
发表于 2020-3-4 20:48:34 | 显示全部楼层 |阅读模式

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: [emerg] 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: [emerg] 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
[root@VM_0_15_centos ~]# nginx: [emerg] open() "/usr/local/nginx/conf/rewrite/no.conf" failed (2: No such file or dir

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 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
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-3-5 09:21:52 | 显示全部楼层

上面有错误提示里有说明,no.conf不存在,lnmp中没有no.conf 的伪静态规则,如果是自定义的需要自己创建好
按你发的过程的话不可能出现no.conf,除非修改过 /bin/lnmp 的脚本
你可以先修改提示的虚拟主机配置文件,将 no.conf 替换为 none.conf ,重启nginx
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-21 21:59 , Processed in 0.034090 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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