xFusionCorp Industries is planning to host two static websites on their infra in Stratos Datacenter. The development of these websites is still in-progress, but we want to get the servers ready. Please perform the following steps to accomplish the task:
httpd package and dependencies on app server 3.Apache should serve on port 6400./home/thor/official and /home/thor/games on jump_host. Set them up on Apache in a way that official should work on the link http://localhost:6400/official/ and games should work on link http://localhost:6400/games/ on the mentioned app server.curl http://localhost:6400/official/ and curl http://localhost:6400/games/Login into App Server 3 and Install httpd
sudo yum install -y httpd
Change Apache port:
sudo cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
sudo sed -i 's/80/6400/g' /etc/httpd/conf/httpd.conf
Restart Apache Server
sudo systemctl restart httpd
Copy backup from Jump Host to App Server
scp -r /home/thor/official banner@stapp03:/home/banner
scp -r /home/thor/games banner@stapp03:/home/banner/
Place websites
sudo cp -r /home/banner/official /var/www/html/
sudo cp -r /home/banner/games /var/www/html
Restart httpd
Verify result
curl http://localhost:6400/games/
curl http://localhost:6400/official/
<!DOCTYPE html>
<html>
<body>
<h1>KodeKloud</h1>
<p>This is a sample page for our official website</p>
</body>
</html>
/var/www/html/ (default)index.html, index.php served automatically/etc/httpd/conf/httpd.conf/etc/httpd/conf.d/