如何在Bitnami中还原Apache配置文件 [英] How to restore Apache configuration file in Bitnami

查看:66
本文介绍了如何在Bitnami中还原Apache配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在LightSail服务器上运行bncert-tool时,我不小心修改了一些Apache的配置文件,现在我需要从备份目录中还原这些配置文件.有关更多信息,请参见此处的先前问题和解答,以获取更多信息:修改后的Bncert命令已使站点脱机

When running the bncert-tool on my LightSail server, I have accidentally modified some of Apache's configuration files which I now need to revert from the backup directories. See previous question and answer here for more info: Modified Bncert command has taken site offline

我已经查看了/opt/bitnami/apache2/conf /opt/bitnami/apache2/conf/bitnami 目录,并且可以看到一系列文件包括 httpd.conf.back.202101220056 (/conf)和 bitnami.conf.back.202101220056 (/bitnami).

I have looked in both the /opt/bitnami/apache2/conf and /opt/bitnami/apache2/conf/bitnami directories and can see a series of files including httpd.conf.back.202101220056 (/conf) and bitnami.conf.back.202101220056 (/bitnami).

我的问题是我需要将哪些备份文件复制到哪个位置?我假设它是通过"mv"命令执行的.

My question is which backup files do I need need to copy to which location? I assume it is performed via a 'mv' command.

非常感谢您的帮助.

推荐答案

在bitnami堆栈上,主要的Apache服务器配置文件是(httpd.conf)

On a bitnami stack the main Apache server configuration file is (httpd.conf)

为SSL配置服务器时,通常在文件(bitnami.conf)中完成

When you are configuring server for SSL this is usually done in the file (bitnami.conf)

我首先将当前的bitnami.conf替换为原始的bitnami.conf.然后重新启动服务器,以使更改生效.bitnami.conf位于目录apache2/conf/bitnami

I would start by replacing the current bitnami.conf with the original bitnami.conf. Then restart your server so that the changes that effect. bitnami.conf is located in the directory apache2/conf/bitnami

如果仍不能解决问题,请用原始的httpd.conf替换当前的httpd.conf.然后重新启动服务器,以使更改生效.httpd.conf位于目录apache2/conf中.

If that does not fix it then replace the current httpd.conf with the original httpd.conf. Then restart your server so that the changes that effect. httpd.conf is located in the directory apache2/conf .

请注意,如果使用FileZilla连接到服务器,则修改服务器文件会容易得多.您可以删除并拖放以使用FileZilla复制文件.

Note you will find it a lot easier to modify server files if you connect to your server with FileZilla. You can delete and drag and drop to copy files with FileZilla.

这篇关于如何在Bitnami中还原Apache配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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