100-Days-Of-DevOps-Challenge-KodeKloud

Install and Configure Web Application

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:

Steps

  1. Login into App Server 3 and Install httpd

     sudo yum install -y httpd
    
  2. 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
    
  3. Restart Apache Server

     sudo systemctl restart httpd
    
  4. 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/
    
  5. Place websites

     sudo cp -r /home/banner/official /var/www/html/
     sudo cp -r /home/banner/games /var/www/html
    
  6. Restart httpd

  7. 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>
    

Good to Know?

Apache Virtual Hosts

Document Root Structure

Apache Configuration

Web Application Deployment