I have a docker container that runs apache2, due to some modification in apache2
sites-enables-SSL
file, I entered the wrong certificate name in the .conf
file and this prevents me to access the container anymore.
Is there any way to undo my changes to be able to access the container again?
CodePudding user response:
I have solved the issue, by
sudo docker cp f0a862502b7a:/etc/apache2/sites-available /opt/
vi /opt/sites-available/default-ssl.conf
and undo the changes and savesudo docker cp /opt/sites-available/default-ssl.conf f0a862502b7a:/etc/apache2/sites-available
- restart the container and it works