恢復Debian Apache配置步驟如下:
sudo systemctl stop apache2
sudo tar -xzvf /path/to/backup/apache2_backup.tar.gz -C /
(需將/path/to/backup/
替換為實際備份路徑)sudo cp -a /path/to/backup/apache2/* /etc/apache2/
sudo systemctl start apache2
注意:
/etc/apache2/sites-available/
)已正確恢復。