Skip to main content

Posts

Showing posts from February, 2024

Hosting a Static Website on AWS S3 with Custom Domain and HTTPS

Introduction In this article, I will guide you through the process of hosting a static website on Amazon Web Services (AWS) S3 bucket, mapping it to a custom domain, and enabling HTTPS. I recently went through this process and found it to be a bit complex, so I wanted to share my experience to help others. Prerequisites An AWS account A static website built and ready for deployment A registered domain name with a third-party registrar (e.g., GoDaddy) Step 1: Create an S3 Bucket and Upload Static Website Sign in to the AWS Management Console and navigate to the Amazon S3 service. Click “Create bucket” and provide a unique DNS-compliant name for your bucket. Choose a region for your bucket and click “Create”. Upload your static website files to the bucket and make the bucket public. Step 2: Enable Static Website Hosting and Set Index Document Go to the Properties tab of your bucket. Scroll down to the “Static website hosting” box and click “Edit”. Select “Enable” and e

Story of Hosting a Static Website on AWS

I recently went through this process of hosting a static website on Amazon Web Services (AWS) S3 bucket , mapping it to a custom domain, and enabling HTTPS and found it to be a bit complex, so I wanted to share my experience to help others. Since, I wanted to share my website with the world but I needed a place to host it. So, I turned to  AWS S3 , a storage service that could handle the job. First, I created a bucket  (like a digital container) on S3 and uploaded my website files. Initially, I made the bucket public for easy access, but this meant I had to type the entire file name (e.g., index.html ) every time I visited. This wasn't ideal. To avoid the long URL , I enabled  static website hosting  on the S3 bucket. This allowed me to access my website without specifying the filename. However, the provided URL was long and difficult to remember. Needing a better address , I registered a domain name (e.g., abc.com ) from a third-party like GoDaddy. But how could I connect

Best CSS for textual HTML docs

Here, I have listed few of the best CSS themes which can be used for displaying textual HTML documents, e.g., privacy, terms & condition pages etc. You can just add the selected CSS theme's link tag in the head of the HTML code. That's it! Latex PDF document like < link rel = "stylesheet" href = "https://latex.now.sh/style.css" > Awsm Looks great < link rel = "stylesheet" href = "https://igoradamenko.com/awsm.css/v1/css/awsm.min.css" > New < link rel= "stylesheet" href= "https://fonts.xz.style/serve/inter.css" > < link rel= "stylesheet" href= "https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css" > Tacit < link rel= "stylesheet" href= "https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css-1.7.1.min.css" /> Chota Looks standard < link rel= "stylesheet" href= "ht