rwobben
#1
Hello,
I did these steps :
ssh tony@stapp01
sudo su -
yum install -y openssh-clients
systemctl restart sshd
from jump host :
scp -r /home/thor/news tony@stapp01:/tmp
scp -r /home/thor/cluster tony@stapp01:/tmp
back to stap01
yum install -y httpd
vi /etc/httpd/conf/httpd.conf // change the port as requested
systemctl enable httpd && systemctl start httpd && systemctl status httpd
mv /tmp/news/ /var/www/html/
mv /tmp/cluster/ /var/www/html/
curl http://stapp01:8080/news
And then I get a 500 connection refused error message
What did I do wrong here ?
Hi @rwobben
After installing httpd, did you change the Apache port? It should be updated to 8080, as the default port is 80.
rwobben
#3
yes,
I did :
vi /etc/httpd/conf/httpd.conf
to change the port
in my challenge I had to change it to port 5000 as I remember it right
If you changed the port to 5000 as the task requires, you should use curl with this port instead of 8080. You can refer to the solution using Ansible here:
Day 19: Install and Configure Web Application – 100 Days of DevOps KodeKloud Challenges Solutions
rwobben
#5
Finally it worked after several days
1 Like