php55w-common conflicts with php-common-5.* | Php issues while installing libraries
I was trying to install mongo extension with pecl. It gave me error: Then, I…
May 30, 2018
Static websites have several advantages over dyanamic websites. If you are running your personal blog or portfolio or small websites. Static websites is the way to go.
Although, this post is not for listing benefits of static website. I will write more on this in another post.
Click on bucket policy. In the editor, type below:
{
"Version": "2012-10-17",
"Id": "Policy1527570565509",
"Statement": [
{
"Sid": "Stmt1527570562766",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::www.gyanblog.com/*"
}
]
}
Remember to replace your bucket name in Resource above.
Note: It will now show your bucket as Public access. You require to have this bucket public read access.
Note, for SEO purpose you would want your website to open on either www. version or non-www version. Create another bucket with non-www version, say: gyanblog.com
Again, goto Public tab on this bucket. Put above policy in Bucket policy. (Exactly same, except bucket name)
{
"Version": "2012-10-17",
"Id": "Policy1527570565509",
"Statement": [
{
"Sid": "Stmt1527570562766",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::gyanblog.com/*"
}
]
}
Note: the non-www bucket above.
Note: We will have our website to open on https protocol. With cloudflare free SSL support.
Now, copy your website files over ot this bucket.
Note down your URL from static website hosting tab. Try opening that URL in browser. You should see your website. If you are not seeing expected result. You should see above steps carefully.
Proceed only when you see your website above.
I assume you have registered on cloudflare free account, and added your website.
From where you purchased your domain, goto its DNS setting. And, change its nameservers as mentioned in DNS tab of cloudflare. In my case,
Wait for few minutes, to allow DNS changes to be done. It should be done with in 10 minutes. But, in some cases, it might take hours.
Now, if you open your website name. You would see your static website pages.
All set.
Hope you enjoyed the post.
I was trying to install mongo extension with pecl. It gave me error: Then, I…
Introduction VS code is an excellent free IDE for maany types of programming…
Introduction In this guide, we will see git basic commands, and fundamentals of…
Introduction This post is about syncing your mongodo database data to…
Introduction Assume you have a drupal website and using cloudflare. You are…
Introduction While this topic may applicable to all mysql/mariadb users who…
In this post, we will see some of the frequently used concepts/vocabulary in…
System design interview is pretty common these days, specially if you are having…
Introduction You are given an array of integers with size N, and a number K…
Graph Topological Sorting This is a well known problem in graph world…
Problem Statement Given a Binary tree, print out nodes in level order traversal…
Problem Statement Given an array nums of n integers and an integer target, are…