cloudlaunch/guide

Chapter 05 · Public IP

Publish your HTML page

Apache serves files from /var/www/html. Replace the default page with your own index.html, then open it from anywhere.

Create the document root page
sudo nano /var/www/html/index.html
/var/www/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 AWS Website</title>
</head>
<body>
  <h1>Welcome to my AWS website</h1>
  <p>This page is hosted on Apache.</p>
</body>
</html>
Set permissions and reload
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
sudo systemctl restart apache2

Your live site

http://YOUR_PUBLIC_IP