修改后的Bncert命令使站点脱机 [英] Modified Bncert command has taken site offline

查看:79
本文介绍了修改后的Bncert命令使站点脱机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我犯了一个愚蠢的错误;因此,我有一个LightSail实例来运行我的Wordpress Bitnami网站.我最近使该域正常工作,但决定要生成SLL证书,因此决定在控制台中运行bncert-tool函数.

I have made a silly mistake; So I have a LightSail instance to run my Wordpress Bitnami website. I had recently got the domain working but decided that I wanted to generate an SLL certificate so decided to run the bncert-tool function in the console.

我不断收到一条错误消息,指出"example.com"和"www.examples.com"的DNS公共IP地址不同.无法解决此问题后,我(很愚蠢)运行了以下命令来跳过DNS记录检查:

I kept getting an error message saying that the 'example.com' and 'www.examples.com' DNS public IP addresses were different. After not being able to fix this issue I ran (rather stupidly) the following command to skip the DNS record check:

sudo/opt/bitnami/bncert-tool --perform_public_ip_validation 0 --perform_dns_validation 0

sudo /opt/bitnami/bncert-tool --perform_public_ip_validation 0 --perform_dns_validation 0

我现在有两个问题:

  1. 现在无法通过浏览器访问该网站(以前在此之前可以正常工作).
  2. 当我尝试运行简单的sudo/opt/bitnami/bncert-tool命令时,我从Bitnami控制台获得以下输出:

Bitnami安装目录请输入包含以下内容的目录:Bitnami安装.Linux的默认安装目录安装程序是/opt内的目录.Bitnami安装目录[/opt/bitnami]:

Bitnami installation directoryPlease type a directory that contains a Bitnami installation. The default installation directory for Linux installers is a directory inside /opt. Bitnami installation directory [/opt/bitnami]:

注意:这是在实例重启后执行的,因此希望它具有通常的默认目录.与过去一样.

Note: this is following an instance reboot so would expect it to come up with the usual default directory. As it has in the past.

无论如何,我可以解决此问题吗?:-/

If there anyway I can fix this? :-/

推荐答案

此处是Bitnami工程师,

Bitnami engineer here,

Bitnami HTTPS配置工具修改了Apache的主配置文件,以配置SSL证书和您选择的重定向.您可以简单地使用工具生成的备份文件恢复这些文件,然后再进行任何更改.您将在/opt/bitnami/apache2/conf /opt/bitnami/apache2/conf/bitnami 目录中找到这些备份文件.替换文件后,请重新启动服务器

The Bitnami HTTPS configuration tool modifies the Apache's main configuration file to configure the SSL certificates and the redirections you selected. You can simply recover those files with the backup files the tool generates before making any change. You will find those backup files inside the /opt/bitnami/apache2/conf and /opt/bitnami/apache2/conf/bitnami directories. After replacing the files, please restart the server

sudo /opt/bitnami/ctlscript.sh restart apache

注意:您还可以修改DNS设置,以正确配置www和非www域以指向您的实例,因此您无需修改​​Apache conf

Note: You can also modify your DNS settings to properly configure the www and non-www domains to point to your instance so you won't need to modify the Apache conf

这篇关于修改后的Bncert命令使站点脱机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆