ubuntu14.04系统vps装的Apache,在配制Let's Encrypt免费SSL的时候失败,望高手指导!
发表于 : 2017-04-27 22:21
看到大家都HTTPS:了,自己也想装一回,可是在网上收集了很多教程都不行,最后的界面如图
意思好像是证书存在了,但是安装失败
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 51 of /etc/apache2/sites-enabled/renzaijianghu-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
Rolling back to previous server configuration...
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 51 of /etc/apache2/sites-enabled/renzaijianghu-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
IMPORTANT NOTES:
- We were unable to install your certificate, however, we
successfully restored your server to its prior configuration.
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/renzaijianghu.net/fullchain.pem. Your cert
will expire on 2017-07-26. To obtain a new or tweaked version of
this certificate in the future, simply run certbot-auto again with
the "certonly" option. To non-interactively renew *all* of your
certificates, run "certbot-auto renew"
而且我也在VPS上找到了证书位置
安装过程完全执行的教程:http://blog.csdn.net/zstack_org/article ... s/53389305
但是最后出错了!
后来看到Apache的配制教程:http://www.chinaz.com/web/2015/1221/486106_3.shtml
但是这个我根本找不到相应文件的路径,他的路径是: /usr/local/apache/conf/httpd.conf ,而我的系统根本找不到,如图
本人本来也是小白,就是喜欢瞎琢磨,还望高手指教!
意思好像是证书存在了,但是安装失败
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 51 of /etc/apache2/sites-enabled/renzaijianghu-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
Rolling back to previous server configuration...
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 51 of /etc/apache2/sites-enabled/renzaijianghu-le-ssl.conf: Expected </VirtualHost> but saw </VirtualHost></IfModule>
IMPORTANT NOTES:
- We were unable to install your certificate, however, we
successfully restored your server to its prior configuration.
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/renzaijianghu.net/fullchain.pem. Your cert
will expire on 2017-07-26. To obtain a new or tweaked version of
this certificate in the future, simply run certbot-auto again with
the "certonly" option. To non-interactively renew *all* of your
certificates, run "certbot-auto renew"
而且我也在VPS上找到了证书位置
安装过程完全执行的教程:http://blog.csdn.net/zstack_org/article ... s/53389305
但是最后出错了!
后来看到Apache的配制教程:http://www.chinaz.com/web/2015/1221/486106_3.shtml
但是这个我根本找不到相应文件的路径,他的路径是: /usr/local/apache/conf/httpd.conf ,而我的系统根本找不到,如图
本人本来也是小白,就是喜欢瞎琢磨,还望高手指教!