Question:
Solution:
Log in to mentioned app server in the question
ssh banner@stapp03
Find the docker container
sudo docker ps
Enter inside the docker container
docker exec -it kkloud /bin/bash
Install the apache2 and update the configuration according to mention ports and hostname
apt install apache2 -y
cd /etc/apache2
sed -i 's/Listen 80/Listen 3001/g' ports.conf
sed -i 's/:80/:3001/g' apache2.conf
sed -i 's/#ServerName www.example.com/ServerName localhost/g' apache2.conf
Restart and check the status of apache
service apache2 start
service apache2 enable
service apache2 status
cd /etc/apache2
ReplyDeletesed -i 's/Listen 80/Listen 3001/g' ports.conf
sed -i 's/:80/:3001/g' apache2.conf
sed -i 's/#ServerName www.example.com/ServerName localhost/g' apache2.conf