How to add a custom domain in Github Pages - Tutorial 2
WebJeda
Read: https://blog.webjeda.com/custom-domain-github/ Support my channel: https://www.paypal.me/webjeda
In this video, I'm configuring custom URL to my website which is hosted on Github Pages.
Domain name used: http://truejewels.in
Github custom domain IP: 192.30.252.153 and 192.30.252.154 (use any or both)
New IPs(Recommended): 185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153
You can find these IPs here(if they ever change): https://goo.gl/IfgBJB
Here is the video for the step before this Creating a website on Github: https://www.youtube.com/watch?v=bwThn0rxv7M
and the video for the step after this Adding a subdomain to the website: https://www.youtube.com/watch?v=-pJq3XZQbt0
Steps for adding custom domain:
Adding CNAME file to the gh-pages branch of your repository. Go to the repository where you have hosted your website and click on ‘New File’. Name the file as CNAME without any extension. Now, inside the CNAME file write your domain name you would like to host it as. For my example it is truejewels.in. Now commit your file to the repository. Make sure you are still in the gh-pages branch.
Adding A record in the DNS Zone Records Login to the website(im my case godaddy) where you purchased your website. Go to your domain and click on something similar to ‘Manage Domain’. Now go to DNS Zone File option. Now click on Add Record and add an A record with following configuration
Host: @ Points to: 192.30.252.153
Add another if you like
Host: @ Points to: 192.30.252.154
Click on Finish and Save.
And that’s about it. Do not rush though. It will take a while to propagate. So grab a cup of coffee. Once you are done, hit your URL :)
Ok, couldn't figure it out? Just leave a comment. I will try to fix.
*No CLI or Terminal *Only html coding
Blog: http://blog.webjeda.com Facebook page: https://www.facebook.com/webjeda/ My Website: http://webjeda.com
Note: These videos are more focused on web designers and developers.
#jekyll #githubpages #tutorial #domain ... https://www.youtube.com/watch?v=hUChaN-VRIc
22283743 Bytes