Modified Bncert command has taken site offline

这一生的挚爱 提交于 2021-02-08 11:37:00

问题


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.

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

I now have two issues:

  1. The website is now unreachable via a browser (was previously working right before this).
  2. When I try to run the simple sudo /opt/bitnami/bncert-tool command I get the following output from the Bitnami console:

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? :-/


回答1:


Bitnami engineer here,

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

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




回答2:


Thanks for your help. I understand situation a bit better now but a new question has emerged. I have posted this for anyone that's interested: How to restore Apache configuration file in Bitnami



来源:https://stackoverflow.com/questions/65842018/modified-bncert-command-has-taken-site-offline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!