0% found this document useful (0 votes)
4 views

AWS Program 3

This document provides a step-by-step guide for setting up a basic web server on a free tier EC2 instance. It includes commands for accessing the server, creating an HTML file for a custom website, and starting the HTTP service. The HTML template features sections such as 'About Us', 'Our Services', and 'Contact Us'.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

AWS Program 3

This document provides a step-by-step guide for setting up a basic web server on a free tier EC2 instance. It includes commands for accessing the server, creating an HTML file for a custom website, and starting the HTTP service. The HTML template features sections such as 'About Us', 'Our Services', and 'Contact Us'.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Program: 3

Setting Up a Basic Web Server on a Free Tier EC2 Instance


Deploy Your Website
• Type in power shell given commands.
➢ ssh -i "C:\Users\HP\Downloads\mcanew.pem" [email protected]
➢ sudo chmod 777 /var/www/html
➢ cd /var/www/html
➢ nano index.html

//index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Custom Website</title>
</head>
<body>
<header>
<h1>Welcome to My Custom Website</h1>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Contact</a>
</nav>
<div class="container">
<h2>About Us</h2>
<p>This is a simple custom website created for demonstration purposes. You can
customize it further to suit your needs.</p>
<h2>Our Services</h2>
<ul>
<li>Web Design</li>
<li>Graphic Design</li>
<li>SEO Optimization</li>
</ul>
<h2>Contact Us</h2>
<p>Email: [email protected]<br>Phone: 123-456-7890</p>
</div>
<footer>
&copy; 2024 My Custom Website. All rights reserved.
</footer>
</body>
</html>

➢ To save type Ctrl + O


➢ To exit type Ctrl + X
➢ sudo systemctl start httpd
➢ sudo systemctl enable httpd
Run IP Address in Web Browser

You might also like